@if($row->status->value === 'sent') @if(auth()->user()->dealer_id == $row->to_dealer_id) @endif @if(auth()->user()->dealer_id == $row->from_dealer_id || auth()->user()->hasRole('admin')) @endif @endif @if($row->status->value === 'received') @if(auth()->user()->dealer_id == $row->from_dealer_id || auth()->user()->hasRole('admin')) @endif @if(auth()->user()->dealer_id == $row->from_dealer_id || auth()->user()->hasRole('admin')) @endif @endif @if($row->status->value === 'approved') @can('complete-mutation') @endcan @can('edit-mutation') @endcan @endif @if(in_array($row->status->value, ['pending', 'approved']) && auth()->user()->id === $row->requested_by) @endif @if($row->status->value === 'completed') @endif