@php $setting = App\Setting::first(); @endphp
{{ dataTranslation($setting->organization_name) }}
  • {{ __('General') }}
  • {{ __('Dashboard') }}
    • {{ __('User Dashboard') }}
    • {{ __('General Dashboard') }}
  • {{--
  • {{ __('Dashboard') }}
  • --}}
  • {{ __('My Files') }}
  • {{ __('Shared Files') }}
  • {{ __('Contact List') }}
  • {{ __('People') }}
  • {{ __('Calendar') }}
  • {{ __('Document') }}
      @php $workflow_types = App\WorkflowType::where('id', '<', 4)->orderBy('id', 'asc')->get(); @endphp @foreach($workflow_types as $workflow_type) @php $doc_types = json_decode($workflow_type->name, true); $doc_type = $doc_types['en']; $total_documents=0; $total_doce = App\WorkflowDocumentUser::join('workflow_documents', 'workflow_document_users.workflow_document_id', '=', 'workflow_documents.id') ->where('workflow_documents.workflow_type_name', 'like', '%'.$doc_type.'%') ->where('workflow_documents.is_deleted', 0) ->where('workflow_document_users.user_id', Auth::user()->id) ->where('workflow_document_users.is_read', '0') ->where('workflow_document_users.status', 'Y') ->select(DB::raw('count(workflow_documents.id) as row_count', 'workflow_documents.id')) ->get() ->toArray(); if($total_doce !==null) { $total_documents=$total_doce[0]['row_count']; } @endphp
    • {{ dataTranslation($workflow_type->name) }} ({{ $total_documents }})
    • @endforeach @if(in_array(12, auth()->user()->getPermissionList()))
    • {{ __('Api') }} ({{App\RemoteTransfer::where('direction', 0)->whereNull('read_at')->count()}}/{{App\RemoteTransfer::where('direction', 1)->whereNull('receipt')->count()}})
    • @endif
  • {{ __('Listings') }}
  • {{--
  • {{ __('Listings') }}
      @if(in_array(App\User::getUserRole()->where('users.id', auth()->user()->id)->first()->role_id, [8, 9, 11, 12]))
    • {{ __('Reports') }} {{ __('Listings') }}
    • @endif
  • --}}