{{ __('Loading...') }}
@if(auth()->user()->canManageProposals() && !empty($selectedProposals))
{{ count($selectedProposals) }} {{ __('proposal(s) selected') }}
@endif
{{ __('Proposals') }}
{{ __('Total:') }} €{{ number_format($totalAmount, 2) }}
{{ __('Start Conflict Review') }} @if(auth()->user()->isAdmin() || auth()->user()->isSuperadmin()) {{ __('New Proposal') }} @endif
@if(auth()->user()->canManageProposals()) @endif @forelse($proposals as $proposal) @if(auth()->user()->canManageProposals()) @endif @empty @endforelse
{{ __('Proposal') }} @if($sortBy === 'title') {!! $sortDirection === 'asc' ? '↑' : '↓' !!} @endif {{ __('Client') }} @if($sortBy === 'client_id') {!! $sortDirection === 'asc' ? '↑' : '↓' !!} @endif {{ __('Department') }} @if($sortBy === 'department') {!! $sortDirection === 'asc' ? '↑' : '↓' !!} @endif {{ __('Amount') }} @if($sortBy === 'amount') {!! $sortDirection === 'asc' ? '↑' : '↓' !!} @endif {{ __('Date') }} @if($sortBy === 'proposal_date') {!! $sortDirection === 'asc' ? '↑' : '↓' !!} @endif {{ __('Status') }} @if($sortBy === 'status') {!! $sortDirection === 'asc' ? '↑' : '↓' !!} @endif {{ __('KYC Status') }} {{ __('Actions') }}
{{ $proposal->proposal_id }}
@if($proposal->description)
{{ $proposal->description }}
@endif
@if($proposal->client)
{{ $proposal->client->client_id ?? '' }}
@else
{{ __('No Client') }}
@endif
{{ $proposal->department_name }}
@if($proposal->effective_amount > 0) €{{ number_format($proposal->effective_amount, 2) }} @else - @endif
{{ $proposal->proposal_date->format('M d, Y') }}
@if($proposal->valid_until)
{{ __('Valid:') }} {{ $proposal->valid_until->format('M d, Y') }} @if($proposal->isExpired()) ({{ __('Expired') }}) @elseif($proposal->getDaysUntilExpiry() && $proposal->getDaysUntilExpiry() <= 7) ({{ $proposal->getDaysUntilExpiry() }}{{ __('d left') }}) @endif
@endif
{{ __('By') }} {{ $proposal->user->name }}
{{ $proposal->status_icon }} {{ $proposal->status_label }} @php $kycStatus = $proposal->kycStatus; @endphp @if($kycStatus) @php $kycStatusColors = [ 'pending' => 'bg-gray-100 text-gray-800', 'sent' => 'bg-blue-100 text-blue-800', 'to_be_filled' => 'bg-yellow-100 text-yellow-800', 'completed' => 'bg-orange-100 text-orange-800', 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', ]; $kycStatusIcons = [ 'pending' => '⏳', 'sent' => '📤', 'to_be_filled' => '📝', 'completed' => '✅', 'approved' => '🟢', 'rejected' => '❌', ]; @endphp {{ $kycStatusIcons[$kycStatus->status] ?? '❓' }} {{ $kycStatus->status_label }} @if($kycStatus->last_kyc_sent_at)
Sent: {{ $kycStatus->last_kyc_sent_at->format('M d') }}
@endif @else 📋 No KYC @endif
@if($proposal->status === 'draft') @endif {{-- Copy button hidden for all users --}} @if(auth()->user()->hasPermission('proposals.edit')) {{ __('Edit') }} @endif @if(in_array(auth()->user()->role, ['admin', 'superadmin']) || auth()->user()->isSeniorLawyer()) @endif

{{ __('No proposals found') }}

{{ __('Get started by starting a conflict review or creating a proposal.') }}

{{ __('Start Conflict Review') }} @if(auth()->user()->isAdmin() || auth()->user()->isSuperadmin()) {{ __('New Proposal') }} @endif
@if($proposals->hasPages())
{{ $proposals->links() }}
@endif
@if($itemToDelete)

{{ __('Confirm Delete') }}

{{ __('Are you sure you want to delete this proposal? This action cannot be undone.') }}

@endif @if($showBulkDeleteConfirm)

{{ __('Confirm Bulk Delete') }}

{{ __('Are you sure you want to delete') }} {{ count($selectedProposals) }} {{ __('selected proposal(s)?') }} {{ __('Sent proposals will be changed to pending status instead of being deleted.') }}

@endif