@extends('layouts.master') @section('title', trans('messages.quotation') . ' #' . $invoice->invoice_number) @section('content')
{{ 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.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) }} | ||||