@php $accName=account()->account_name; @endphp
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 : '-'}} | {{-- {!! $case->getPriorityStatus() !!} | {!! $case->getPriorityStatus() !!} | --}}{!! $case->getTime() !!}h. | @if($case->control=='Client'){{--{{\App\Models\Account::where('id',\App\Models\Contact::where('user_id',Auth::id())->first()->account_id)->first()->account_name}}--}}{{-- то это вообще??))--}} {{ $accName }} {{ session('accountId')===20?' (client)':'' }} | @elseGLESEC | @endif{!! $case->getStatus() !!} | @php $ceh=$case->escalationHistory; $pId=count($ceh)>0?$ceh->sortByDesc('id')->first()->position_id:null; @endphp{{$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() !!}
|