@include('layouts.hhHeader') @php($companies = \App\HhCompanies::where(['hh_company_id' => Auth::user()->company_id])->get()) @php($candRequest = \App\HhRequest::where(['company_id' => Auth::user()->company_id])->get()) @php($sharedCand = \App\HhSharedCandidates::where(['hh_company_id' => Auth::user()->company_id])->get()) @php($candidates = \App\HhCandidates::where(['company_id' => Auth::user()->company_id])->get()) @php ($notification = \App\Communication::where(['receiver_id' => Auth::user()->id, 'read_by_emp' => 0])->with('sender')->get()) @php($canNotification = \App\HhRequest::where(['company_id' => Auth::user()->company_id, 'is_read' => 0])->get()) @php ($countNotification = 0) @if(count($notification) != 0 || count($notification) != null || count($canNotification) != 0 || count($canNotification) != null) @php ($countNotification = count($notification)+count($canNotification)) @endif

Hello, {{Auth::user()->name}}

Welcome to WorkHolik

Companies

{{count($companies)}}

Candidate Requests

{{count($candRequest)}}

Shared Candidates

{{count($sharedCand)}}

Candidates

{{count($candidates)}}

Messages

{{count($notification)}}

Notification

{{$countNotification}}

@include('layouts.footer')