@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") ?? ($quote->firstname . ' ' . $quote->lastname) }} {{ $quote->subject }} ${{ number_format($quote->total ?? 0, 2) }} {{ $quote->validuntil?->format('d M Y') ?? '—' }} {{ $quote->stage ?? 'Draft' }} {{ __('common.actions.edit') }}
@csrf @method('DELETE')
@if(method_exists($quotes, 'links'))
{{ $quotes->links() }}
@endif @endif
@endsection