Search
@csrf
@foreach($searchSuggestion as $suggestion) @endforeach
@if (isset($searchResults)) @foreach ($searchResults as $efile) @php $draftNow = DB::table('draftshares')->where('draft_id' , $efile->draft_id)->orderBy('id', 'DESC')->first(); @endphp @if(isset($draftNow->touser)) @php $getuname = DB::table('users')->where('id', $draftNow->touser)->first(); $getusection = DB::table('departments')->where('id', $getuname->department_id)->first(); @endphp @endif @endforeach
Document No. Title Status Receiving Register Created by Receiving Date

{{$efile->doc_no}}

{{ $efile->subject }}

@if(isset($getuname, $draftNow))

{{$getuname->jobtitle}}@if(isset($getusection))({{$getusection->name}})@endif

@endif
@php $getfileshare = DB::table('efileshares')->where('id', $efile->id)->first(); $getname = DB::table('users')->where('id', $efile->sharefrom)->first(); $getsection = DB::table('departments')->where('id', $getname->department_id)->first(); @endphp

({{$getname->jobtitle}}) - @if(isset($getsection)) {{$getsection->name}} @endif

{{ \Carbon\Carbon::parse($efile->created_at)->format('d F, Y') }}

@endif
Reporting Section
@foreach ($current as $eaccess) @php $efile = DB::table('efileshares') ->where('doc_type', 2) ->where('id', $eaccess->draft_id) ->first(); @endphp @php $draftNow = DB::table('draftshares')->where('draft_id' , $efile->draft_id)->orderBy('id', 'DESC')->first(); @endphp @if(isset($draftNow->touser)) @php $getuname = DB::table('users')->where('id', $draftNow->touser)->first(); $getusection = DB::table('departments')->where('id', $getuname->department_id)->first(); @endphp @endif @endforeach
Document No. Title Status Receiving Register Created by Receiving Date

{{$efile->doc_no}}

{{ $efile->subject }}

@if(isset($getuname, $draftNow))

{{$getuname->jobtitle}}@if(isset($getusection))({{$getusection->name}})@endif

@endif
@php $getfileshare = DB::table('efileshares')->where('id', $efile->id)->first(); $getname = DB::table('users')->where('id', $efile->sharefrom)->first(); $getsection = DB::table('departments')->where('id', $getname->department_id)->first(); @endphp

({{$getname->jobtitle}}) - @if(isset($getsection)) {{$getsection->name}} @endif

{{ \Carbon\Carbon::parse($efile->created_at)->format('d F, Y') }}

@foreach ($pending as $eaccess) @php $efile = DB::table('efileshares') ->where('doc_type', 2) ->where('id', $eaccess->draft_id) ->first(); @endphp @php $draftNow = DB::table('draftshares')->where('draft_id' , $efile->draft_id)->orderBy('id', 'DESC')->first(); @endphp @if(isset($draftNow->touser)) @php $getuname = DB::table('users')->where('id', $draftNow->touser)->first(); $getusection = DB::table('departments')->where('id', $getuname->department_id)->first(); @endphp @endif @endforeach
Document No. Title Status Receiving Register Created by Receiving Date

{{$efile->doc_no}}

{{ $efile->subject }}

@if(isset($getuname, $draftNow))

{{$getuname->jobtitle}}@if(isset($getusection))({{$getusection->name}})@endif

@endif
@php $getfileshare = DB::table('efileshares')->where('id', $efile->id)->first(); $getname = DB::table('users')->where('id', $efile->sharefrom)->first(); $getsection = DB::table('departments')->where('id', $getname->department_id)->first(); @endphp

({{$getname->jobtitle}}) - @if(isset($getsection)) {{$getsection->name}} @endif

{{ \Carbon\Carbon::parse($efile->created_at)->format('d F, Y') }}

@foreach ($approved as $eaccess) @php $efile = DB::table('efileshares') ->where('doc_type', 2) ->where('id', $eaccess->draft_id) ->first(); @endphp @php $draftNow = DB::table('draftshares')->where('draft_id' , $efile->draft_id)->orderBy('id', 'DESC')->first(); @endphp @if(isset($draftNow->touser)) @php $getuname = DB::table('users')->where('id', $draftNow->touser)->first(); $getusection = DB::table('departments')->where('id', $getuname->department_id)->first(); @endphp @endif @endforeach
Document No. Title Status Receiving Register Created by Receiving Date

{{$efile->doc_no}}

{{ $efile->subject }}

@if(isset($getuname, $draftNow))

{{$getuname->jobtitle}}@if(isset($getusection))({{$getusection->name}})@endif

@endif
@php $getfileshare = DB::table('efileshares')->where('id', $efile->id)->first(); $getname = DB::table('users')->where('id', $efile->sharefrom)->first(); $getsection = DB::table('departments')->where('id', $getname->department_id)->first(); @endphp

({{$getname->jobtitle}}) - @if(isset($getsection)) {{$getsection->name}} @endif

{{ \Carbon\Carbon::parse($efile->created_at)->format('d F, Y') }}