@if(!is_null($order->client_id) && !is_null($order->clientDetails)) @php $client = $order->client; @endphp @endif @php $editOrderPermission = user()->permission('edit_order'); $deleteOrderPermission = user()->permission('delete_order'); @endphp