@if(($work_order->work_status != 'Completed' && $work_order->work_status != 'Closed' && $work_order->work_status != 'Hold') && in_array(user_id(),$work_order->technician_id?:[]) )
{{--   Preview --}} @php $hasPending = Material::materialRequests($work_order->id) @endphp @if(user('admin.web')->hasPermission('work_order.material_request.approve')) hasPermission('work_order.material_request.approve')) disabled style="pointer-events:none;cursor:not-allowed;" @endif> Approve All @endif
@endif @if(user('admin.web')->hasPermission('work_order.material_request.approve')) @endif @if ($work_order->work_status != 'Completed' && user('admin.web')->technician) @endif @forelse($details as $key => $val) @if(user('admin.web')->hasPermission('work_order.material_request.approve')) @endif @if ($work_order->work_status != 'Completed' && user('admin.web')->technician) @endif @empty @endif
Ref Workorder No. Date Store Material description Qty StatusApproveDelete
{!! @$val->refno !!} {!! @$val->work_order_id !!} {!! format_date(@$val->date != '0000-00-00' ? $val->date : $val->created_at) !!} {!! @$val->store->name !!} {!! @$val->material_description !!} {!! @$val->issued_quantity == 0 ? @$val->quantity : @$val->issued_quantity!!} {!! @$val->status !!}status == 'Approved' || @$val->status == 'Issued' || !user('admin.web')->hasPermission('work_order.material_request.approve')) disabled style="pointer-events:none;cursor:not-allowed;" @endif> @if (!@$val->created_at->addDays(1)->lt(Carbon\Carbon::now()) && @$val->status == 'Pending') @else @endif
No Requests