@php $date = \Carbon\Carbon::parse($month.'/01/'.$year); $tm = $rhours; $ch = $tm; $car = 0; @endphp @foreach($cases as $case) @if($case->control=='Client') @else @endif @endforeach
CASE# Service Priority Owner Queue Assigned to Hours open Consulting hours Consulting above retainer
#{!! $case->id !!} {!! $case->name !!} {!! (\App\Models\Service::where('id',$case->service_id)->first())?\App\Models\Service::where('id',$case->service_id)->first()->short_name : '-' !!} {!! $case->getPriorityStatus() !!}{{\App\Models\Account::where('id',\App\Models\Contact::where('user_id',Auth::id())->first()->account_id)->first()->account_name}}GLESEC{!! \App\Models\Queue::getListNames($case->queue) !!} {!!($case->assigned_user_data)?$case->assigned_user_data:'-'!!} {{ str_replace(['before'], ['ago'], Carbon\Carbon::parse($case->created_at)->diffForHumans(false,false,true))}} {!! \App\Models\Cases::getTimeCase($case->id) !!}h. {!! \App\Models\Cases::getTimeCaseCh($case->id) !!}h.