@php $accName=account()->account_name; @endphp @foreach($cases as $case) {{-- --}} @if($case->control=='Client') @else @endif @php $ceh=$case->escalationHistory; $pId=count($ceh)>0?$ceh->sortByDesc('id')->first()->position_id:null; @endphp @endforeach
CASE# Assigned To Service Priority Hours Owner Status Escalation Action
#{!! $case->id !!} {!! $case->name !!} @foreach($case->skywatchAssignees as $user) {{ $user->contact->firstname.' '.$user->contact->lastname }}, @endforeach {{ $case->service? $case->service->short_name : '-'}} {{ data_get(['low' => 1, 'medium' => 2, 'high' => 3, 'critical' => 4], \Illuminate\Support\Str::lower($case->getPriorityStatus(), 1)) }} {!! $case->getPriorityStatus() !!} {!! $case->getPriorityStatus() !!}{!! $case->getTime() !!}h. {{--{{\App\Models\Account::where('id',\App\Models\Contact::where('user_id',Auth::id())->first()->account_id)->first()->account_name}}--}}{{-- то это вообще??))--}} {{ $accName }} {{ session('accountId')===20?' (client)':'' }} GLESEC{!! $case->getStatus() !!}{{$ceh->count()}} escalation(s) {!! Form::open(['route' => ['cases.index', $case->id], 'method' => 'delete']) !!}
@if(\App\Models\GmpRoles::canSeeLink([\App\Models\GmpRoles::CASES,\App\Models\GmpRoles::CASES_CONTROL])) @endif @php $btnTitle = 'Suspend the case'; $btnClass = 'fa-pause-circle-o'; $btnColor = 'color: #EE324D !important;'; $btnStatus = 0; if ($case->status === \App\Models\Cases::STATUS_SUSPENDED) { $btnTitle = 'Unsuspend the case'; $btnClass = 'fa-play-circle-o'; $btnColor = 'color: #2F9A7F !important;'; $btnStatus = 1; } @endphp @if(\App\Models\GmpRoles::canSeeLink(\App\Models\GmpRoles::MANAGEMENT_REQUEST_FORM) and $cmf=$case->changeManagementForm->first()) {{-- {!! \App\Models\ChangeManagementForm::getRelatedCaseForm($case->id) !!}--}} {!! $cmf->getCaseForm() !!} @endif
{!! Form::close() !!}