{{-- State-dependent actions of a fuel request (row ⋯ menu). Only what the current status and permissions allow. --}} @php $me = auth()->user(); $ref = "\u{2066}#".($fr->request_number ?? $fr->id)."\u{2069}"; // LTR-isolated: hash left of the code in RTL $canReview = $me?->hasPermission('fuel_requests.review'); $canTicket = $me?->hasPermission('fuel_requests.manage_aramco_ticket'); @endphp @if ($canReview && in_array($fr->status, ['submitted', 'under_review'], true)) مراجعة الطلب @endif @if ($canReview && $fr->status === 'approved') بدء الشراء @endif @if ($canReview && $fr->status === 'purchasing') جاهز للتسليم @endif @if ($canTicket && in_array($fr->status, ['approved', 'purchasing', 'ready_delivery'], true) && ! $fr->assigned_supplier_id) معالجة (تذكرة أرامكو والناقل) @endif @if ($canTicket && $fr->assigned_supplier_id) معلومات التسليم @endif