@extends('admin.layouts.app') @section('title', __('admin.quotes.title')) @section('content')
@foreach([''=>'All','Draft'=>'Draft','Sent'=>'Sent','Accepted'=>'Accepted','Declined'=>'Declined'] as $val=>$label) {{ $label }} @endforeach
@forelse($quotes as $quote) @php $badgeClass = match($quote->status) { 'Accepted'=>'badge-active', 'Sent'=>'badge-open', 'Declined'=>'badge-cancelled', default=>'badge-draft' }; @endphp @empty @endforelse
#{{ __('common.table.subject') }}{{ __('common.table.client') }}{{ __('common.table.date') }}{{ __('admin.quotes.valid_until') }}{{ __('common.table.total') }}{{ __('common.table.status') }}{{ __('common.table.actions') }}
{{ $quote->id }} {{ $quote->subject }} {{ $quote->client?->full_name ?? 'N/A' }} {{ \Carbon\Carbon::parse($quote->date)->format('d M Y') }} {{ \Carbon\Carbon::parse($quote->valid_until)->format('d M Y') }} ${{ number_format($quote->total,2) }} {{ $quote->status }}
{{ __('common.actions.view') }} {{ __('common.actions.edit') }}
@csrf @method('DELETE')
{{ __('admin.quotes.no_quotes') }}
{{ $quotes->withQueryString()->links() }}
@endsection