@if($status != 'need_action')

{{ __('Custodies') }}

@can("custodies create") @endcan
@endif @if(session()->has('message'))
{{ session('message') }}
@endif @if ($confirmingDeletionId)

{{ __('Confirm Deletion') }}

{{ __('Are you sure you want to delete this custody?') }}

@endif
@forelse ($custodies as $custody) @empty @endforelse
# {{ __('Name') }} {{ __('Employee') }}/{{ __('Client') }} {{ __('Status') }} {{ __('Delivery Attachment') }} {{ __('Return Attachment') }} {{ __('Actions') }}
{{ $loop->iteration + ($custodies->currentPage() - 1) * $custodies->perPage() }} {{ $custody->name }} {{ $custody->employee->name ?? ( $custody->client->name ?? '-' ) }} {{ __(ucfirst($custody->status)) }} @if($custody->delivery_attachment_url) {{ __('View') }} @else — @endif @if($custody->return_attachment_url) {{ __('View') }} @else — @endif @can("custodies edit") @if($custody->status !== 'returned') @endif @endcan @can("custodies edit") @if($custody->status !== 'returned') @endif @endcan @can('custodies update') @if($custody->status === 'pending' && $custody->employee_id == auth()->id()) @endif @endcan @can("custodies delete") @if($custody->status !== 'returned') @endif @endcan {{ __('View') }}
{{ __('No custodies found.') }}
{{ $custodies->links() }}
{{-- Transfer Modal --}}