@extends('layouts.master') @section('title', trans('messages.quotations')) @section('content') @php $sort = request()->get('sort', 'created_at'); $direction = request()->get('direction', 'desc'); @endphp
@can('invoices.bulk_delete')
@endcan
@can('invoices.bulk_delete') @endcan @forelse($quotations as $quotation) @can('invoices.bulk_delete') @endcan @empty @endforelse
{{ trans('messages.quotation_number') }} @if($sort === 'invoice_number') @else @endif {{ trans('messages.customer') }} {{ trans('messages.date') }} @if($sort === 'created_at') @else @endif {{ trans('messages.total') }} @if($sort === 'total') @else @endif {{ trans('messages.actions') }}
{{ $quotation->invoice_number }} {{ $quotation->customer?->name ?? $quotation->customer_name }} {{ $quotation->created_at->format('Y-m-d') }} {{ format_currency($quotation->total) }} {{ trans('messages.view') }} {{ trans('messages.print_quotation') }} @can('invoices.finalize')
@csrf
@endcan @can('invoices.delete')
@csrf @method('DELETE')
@endcan
{{ trans('messages.no_quotations_found') }}
{{ $quotations->links() }}
@can('invoices.bulk_delete') @push('scripts') @endpush @endcan @endsection