@isset($viewGate) @can($viewGate) {{ trans('global.view') }} @endcan @endisset @isset($editGate) @can($editGate) @if($row instanceof \App\Models\TimeEntry) @if($row->date != date('Y-m-d')) {{ trans('global.edit') }} @endif @else {{ trans('global.edit') }} @endif @endcan @endisset @isset($deleteGate) @can($deleteGate)
@endcan @endisset {{-- Promoter Task List --}} @isset($ptlPrintGate) @can($ptlPrintGate) Print @endcan @endisset @isset($ltrPrintGate) @can($ltrPrintGate) Letter @endcan @endisset {{-- @isset($timeEntryFillQuantity) @can($timeEntryFillQuantity) @if ($row->status == 1) Update Data @endif @endcan @endisset --}} {{-- @isset($clockInOutGate) @can($clockInOutGate) @if ($row->promoters()->where('promoter_id', auth()->user()->id)->firstOrFail()->pivot->status == 0) @elseif ($row->promoters()->where('promoter_id', auth()->user()->id)->firstOrFail()->pivot->status == 1) @endif @endcan @endisset --}} {{-- End Promoter Task List --}}