@extends('admin.layouts.app') @section('title', __('admin.quotes.title')) @section('content')
@if(($quotes ?? collect())->isEmpty())
{{ __('admin.quotes.no_quotes') }}
@else @foreach($quotes as $quote) @endforeach
{{ __('admin.quotes.quote_number') }}{{ __('common.table.client') }}{{ __('common.table.subject') }}{{ __('common.table.total') }}{{ __('admin.quotes.valid_until_col') }}{{ __('admin.quotes.stage') }}{{ __('common.table.actions') }}
{{ $quote->id }} {{ $quote->client?->full_name ?? __("admin.quotes.deleted_client") ?? __('admin.quotes.deleted_client') }} {{ $quote->subject }} {{ money_fmt($quote->total ?? 0) }} {{ $quote->valid_until?->format(date_fmt()) ?? '—' }} {{ $quote->status ?? 'Draft' }} {{ __('common.actions.edit') }}
@csrf @method('DELETE')
@if(method_exists($quotes, 'links'))
{{ $quotes->links() }}
@endif @endif
@endsection