@extends('layouts.master') @section('title', trans('messages.quotation') . ' #' . $invoice->invoice_number) @section('content') @php $storeName = \App\Models\Setting::get('store_name', 'Gestock Pro'); $storeLogo = \App\Models\Setting::get('store_logo'); $currency = currency_symbol(); $isRTL = app()->getLocale() === 'ar'; @endphp
@if($storeLogo) @else

{{ $storeName }}

@endif

{{ trans('messages.quotation') }}

{{ trans('messages.quotation_number') }}: {{ $invoice->invoice_number }}


{{ trans('messages.customer') }}: {{ $invoice->customer?->name ?? $invoice->customer_name }}

@if($invoice->customer)

{{ trans('messages.email') }}: {{ $invoice->customer->email ?? 'N/A' }}

{{ trans('messages.phone') }}: {{ $invoice->customer->phone ?? 'N/A' }}

@endif

{{ trans('messages.date') }}: {{ $invoice->created_at->format('Y-m-d H:i') }}

{{ trans('messages.created_by') }}: {{ $invoice->user->name }}

{{ trans('messages.items') }}
@foreach($invoice->items as $item) @endforeach
{{ trans('messages.product') }} {{ trans('messages.quantity') }} {{ trans('messages.unit_price') }} {{ trans('messages.tax') }} {{ trans('messages.discount') }} {{ trans('messages.total') }}
{{ $item->product->name }} {{ $item->quantity }} {{ format_currency($item->unit_price) }} {{ format_currency($item->tax) }} {{ format_currency($item->discount) }} {{ format_currency($item->total) }}
{{ trans('messages.subtotal') }}: {{ format_currency($invoice->subtotal) }}
{{ trans('messages.discount') }}: {{ format_currency($invoice->discount) }}
{{ trans('messages.tax') }}: {{ format_currency($invoice->tax) }}
{{ trans('messages.total') }}: {{ format_currency($invoice->total) }}
@endsection