@extends('layouts.admin') @section('title', trans('admin.quote_show_title', ['number' => $quote->quote_number])) @section('header_title', trans('admin.quote_show_header', ['number' => $quote->quote_number])) @section('content')
{{ trans('admin.back_to_quotes') }}

{{ trans('admin.quotes_title') }} #{{ $quote->quote_number }}

@if($quote->status === 'converted') {{ trans('admin.converted_status') }} @elseif($quote->status === 'accepted') {{ trans('admin.accepted_status') }} @elseif($quote->status === 'rejected') {{ trans('admin.rejected_status') }} @else {{ ucfirst($quote->status) }} @endif
{{ trans('admin.issuing_company_col') }}: @if($quote->tenant) {{ $quote->tenant->name }} @else - @endif
{{ trans('dashboard.created_at') }}: {{ $quote->created_at->format('Y-m-d') }}
{{ trans('admin.valid_until_col') }}: {{ $quote->valid_until ? $quote->valid_until->format('Y-m-d') : trans('admin.unlimited_lifetime') }}
@if($quote->convertedInvoice) {{ trans('admin.view_converted_invoice_btn', ['number' => $quote->convertedInvoice->invoice_number]) }} @endif
@csrf @method('DELETE')

{{ trans('admin.quote_financial_summary') }}

{{ trans('admin.subtotal_label') }} {{ number_format($quote->subtotal, 2) }} ﷼
{{ trans('admin.vat_15_label') }} {{ number_format($quote->vat_amount, 2) }} ﷼
{{ trans('admin.grand_total_label') }} {{ number_format($quote->total, 2) }} ﷼

{{ trans('admin.offering_company_heading') }}

{{ trans('admin.name_label') }} {{ $quote->tenant->name ?? '-' }}
{{ trans('admin.vat_label') }} {{ $quote->tenant->vat_number ?? '-' }}
{{ trans('admin.email_label') }} {{ $quote->tenant->email ?? '-' }}
{{ trans('admin.phone_label') }} {{ $quote->tenant->phone ?? '-' }}

{{ trans('admin.target_buyer_heading') }}

{{ trans('admin.name_label') }} {{ $quote->buyer_name ?? '-' }}
{{ trans('admin.vat_label') }} {{ $quote->buyer_vat_number ?? '-' }}
@if(!empty($quote->buyer['email']))
{{ trans('admin.email_label') }} {{ $quote->buyer['email'] }}
@endif @if(!empty($quote->buyer['phone']))
{{ trans('admin.phone_label') }} {{ $quote->buyer['phone'] }}
@endif
{{ trans('admin.line_items_heading') }}
@forelse((array) $quote->lines as $line) @empty @endforelse
{{ trans('admin.description_item_col') }} {{ trans('admin.quantity_col') }} {{ trans('admin.unit_price_col') }} {{ trans('admin.tax_col') }} {{ trans('admin.total_col') }}
{{ $line['name'] ?? ($line['description'] ?? '-') }} {{ $line['quantity'] ?? 1 }} {{ number_format((float) ($line['unit_price'] ?? 0), 2) }} ﷼ {{ number_format((float) ($line['vat_amount'] ?? 0), 2) }} ﷼ {{ number_format((float) ($line['total'] ?? 0), 2) }} ﷼
{{ trans('admin.no_lines_found') }}
@if($quote->notes)

{{ trans('admin.quote_notes_terms') }}

{{ $quote->notes }}

@endif
@endsection