@extends('adminlte::page') @section('title', config('adminlte.title') . ' | Documents') @section('content_header')

Documents

@stop @section('content') @php // Calculate unread company documents $unreadCompany = 0; foreach ($companydocs as $cdoc) { if ($cdoc->req_read === 1) { $getRead = \app\models\FileRead::where('doc_id', $cdoc->id) ->where('employee_id', $user->id) ->first(); if ($getRead && $getRead->read_flag === 0) { $unreadCompany++; } } } $totalDocs = count($companydocs) + count($mydocs) + count($myIDdocs); @endphp
{{-- Statistics Cards --}}
Total {{ $totalDocs }}
Company {{ count($companydocs) }}
Personal {{ count($mydocs) }}
ID Documents {{ count($myIDdocs) }}
{{-- Main Content Card --}}

Document Records

{{-- Tabs Navigation --}}
@stop @section('footer')   @stop