@extends("client.layouts.app") @section("title", __("client.quotes.title")) @section("content")

{{ __('client.quotes.title') }}

{{ __('client.quotes.subtitle') }}

@if($total >= \App\Support\ClientListFilter::TOOLBAR_FROM || $filtered) @include('client.partials.list-toolbar', [ 'action' => route('client.quotes.index'), 'tabs' => ['param' => 'status', 'counts' => $statusCounts, 'current' => $status, 'label' => fn ($s) => __('client.status.'.strtolower($s))], 'search' => ['value' => request('q', ''), 'placeholder' => __('client.list.search_quotes')], 'sorts' => ['newest' => __('client.list.sort_newest'), 'oldest' => __('client.list.sort_oldest'), 'valid' => __('client.list.sort_valid'), 'total' => __('client.list.sort_total')], 'sort' => $sort, 'paginator' => $quotes, 'filtered' => $filtered, ]) @endif
@forelse($quotes as $quote) @empty @if($filtered) @else @endif @endforelse
# {{ __('client.quotes.subject') }} {{ __('common.table.date') }} {{ __('client.quotes.valid_until') }} {{ __('common.table.total') }} {{ __('common.table.status') }} {{ __('common.table.action') }}
#{{ $quote->id }} {{ $quote->subject }} {{ $quote->date ? \Carbon\Carbon::parse($quote->date)->format(date_fmt()) : '-' }} {{ $quote->valid_until ? \Carbon\Carbon::parse($quote->valid_until)->format(date_fmt()) : '-' }} {{ money_fmt((float) $quote->total) }} {{-- The client stylesheet has no colours for the quote statuses. --}} {{ __('client.status.' . strtolower($quote->status)) }} {{ __('common.actions.view') }}

{{ __('client.list.no_matches') }}

{{ __('client.list.clear_filters') }}
📋

{{ __('client.quotes.none') }}

{{ $quotes->links() }}
@endsection