@if(!empty($receipt_details->address))
{!! $receipt_details->address !!}
@endif
@if(!empty($receipt_details->contact))
{!! $receipt_details->contact !!}
@endif
@if(!empty($receipt_details->contact) && !empty($receipt_details->website))
,
@endif
@if(!empty($receipt_details->website))
{{ $receipt_details->website }}
@endif
@if(!empty($receipt_details->location_custom_fields))
{{ $receipt_details->location_custom_fields }}
@endif
@if(!empty($receipt_details->sub_heading_line1))
{{ $receipt_details->sub_heading_line1 }}
@endif
@if(!empty($receipt_details->sub_heading_line2))
{{ $receipt_details->sub_heading_line2 }}
@endif
@if(!empty($receipt_details->sub_heading_line3))
{{ $receipt_details->sub_heading_line3 }}
@endif
@if(!empty($receipt_details->sub_heading_line4))
{{ $receipt_details->sub_heading_line4 }}
@endif
@if(!empty($receipt_details->sub_heading_line5))
{{ $receipt_details->sub_heading_line5 }}
@endif
@if(!empty($receipt_details->tax_info1)) {{ $receipt_details->tax_label1 }} {{ $receipt_details->tax_info1 }} @endif @if(!empty($receipt_details->tax_info2)) {{ $receipt_details->tax_label2 }} {{ $receipt_details->tax_info2 }} @endif
@if(!empty($receipt_details->invoice_heading))@if(!empty($receipt_details->invoice_no_prefix)) {!! $receipt_details->invoice_no_prefix !!} @endif {{$receipt_details->invoice_no}} {{$receipt_details->date_label}} {{$receipt_details->invoice_date}}
| {{$receipt_details->table_product_label}} | {{$receipt_details->table_qty_label}} | @if(!empty($receipt_details->lines[0]['group_prices'])) @foreach($receipt_details->lines[0]['group_prices'] as $group_title => $price){{ $group_title }} | @endforeach @endif @if (empty($receipt_details->hide_unit_price)){{$receipt_details->table_unit_price_label}} | @endif @if(!empty($receipt_details->discounted_unit_price_label)){{$receipt_details->discounted_unit_price_label}} | @endif @if(!empty($receipt_details->item_discount_label)){{$receipt_details->item_discount_label}} | @endif{{$receipt_details->table_subtotal_label}} | @if ($receipt_details->total_saving_all)@lang('lang_v1.saving') | @endif
|---|---|---|---|---|---|---|---|
|
@if(!empty($line['image']))
{!!$line['sell_line_note']!!} @endif @if (!empty($line['imei_code_1']))
@lang('lang_v1.imei_1'): {{ $line['imei_code_1'] }}
@if (!empty($line['imei_code_2']))
@endif
@if(!empty($line['lot_number']))@lang('lang_v1.imei_2'): {{ $line['imei_code_2'] }} @endif @lang('lang_v1.status'): {{ $line['imei_status'] }} {{$line['lot_number_label']}}: {{$line['lot_number']}} @endif @if(!empty($line['product_expiry'])), {{$line['product_expiry_label']}}: {{$line['product_expiry']}} @endif @if(!empty($line['warranty_name'])) {{$line['warranty_name']}} @endif @if(!empty($line['warranty_exp_date'])) - {{@format_date($line['warranty_exp_date'])}} @endif @if(!empty($line['warranty_description'])) {{$line['warranty_description'] ?? ''}}@endif @if($receipt_details->show_base_unit_details && $line['quantity'] && $line['base_unit_multiplier'] !== 1) 1 {{$line['units']}} = {{$line['base_unit_multiplier']}} {{$line['base_unit_name']}} {{$line['unit_price_inc_tax']}} x {{$line['quantity']}} = {{$line['line_total']}} @endif {{-- @dd($receipt_details) --}} @php $custom_labels = json_decode(session('business.custom_labels'), true); $common_settings = session()->get('business.common_settings'); @endphp @php $custom_field_1_label = !empty($custom_labels['product_sl']['product_sl_custom_field1']) ? $custom_labels['product_sl']['product_sl_custom_field1'] : ''; $custom_field_2_label = !empty($custom_labels['product_sl']['product_sl_custom_field2']) ? $custom_labels['product_sl']['product_sl_custom_field2'] : ''; $custom_field_3_label = !empty($custom_labels['product_sl']['product_sl_custom_field3']) ? $custom_labels['product_sl']['product_sl_custom_field3'] : ''; $custom_field_4_label = !empty($custom_labels['product_sl']['product_sl_custom_field4']) ? $custom_labels['product_sl']['product_sl_custom_field4'] : ''; @endphp @if(!empty($line['sl_custom_field_1'])) {{ $custom_field_1_label }} : |{{$line['sl_custom_field_1']}} @endif @if(!empty($line['sl_custom_field_2'])) {{ $custom_field_2_label }}: |{{$line['sl_custom_field_2']}} @endif @if(!empty($line['sl_custom_field_3'])) {{ $custom_field_3_label }} : |{{$line['sl_custom_field_3']}} @endif @if(!empty($line['sl_custom_field_4'])) {{ $custom_field_4_label }} |{{$line['sl_custom_field_4']}} @endif |
{{$line['quantity']}} {{$line['units']}}
@if($receipt_details->show_base_unit_details && $line['quantity'] && $line['base_unit_multiplier'] !== 1)
{{$line['quantity']}} x {{$line['base_unit_multiplier']}} = {{$line['orig_quantity']}} {{$line['base_unit_name']}} @endif |
@if(!empty($line['group_prices']))
@foreach($line['group_prices'] as $group_title => $price)
{{ floatval($price) > 0 ? $price : '0' }} | @endforeach @endif @if (empty($receipt_details->hide_unit_price)){{$line['unit_price_before_discount']}} | @endif @if(!empty($receipt_details->discounted_unit_price_label)){{$line['unit_price_inc_tax']}} | @endif @if(!empty($receipt_details->item_discount_label)){{$line['total_line_discount'] ?? '0.00'}} @if(!empty($line['line_discount_percent'])) ({{$line['line_discount_percent']}}%) @endif | @endif {{-- @dd($receipt_details->show_saving) --}}{{$line['line_total']}} | @if ($receipt_details->show_saving){{ $line['total_saving'] ?? '0.00' }} | @endif
| {{$modifier['name']}} {{$modifier['variation']}} @if(!empty($modifier['sub_sku'])), {{$modifier['sub_sku']}} @endif @if(!empty($modifier['cat_code'])), {{$modifier['cat_code']}}@endif @if(!empty($modifier['sell_line_note']))({!!$modifier['sell_line_note']!!}) @endif | {{$modifier['quantity']}} {{$modifier['units']}} | {{$modifier['unit_price_inc_tax']}} | @if(!empty($receipt_details->discounted_unit_price_label)){{$modifier['unit_price_exc_tax']}} | @endif @if(!empty($receipt_details->item_discount_label))0.00 | @endif{{$modifier['line_total']}} | ||
| @if(!empty($receipt_details->discounted_unit_price_label)) | @endif @if(!empty($receipt_details->item_discount_label)) | @endif | |||||
| @php $method = $payment['method']; if (strpos($method, '() (-)') !== false) { $method = str_replace('Cash () (-)', 'Cashback()', $method); } @endphp {{$method}} | {{$payment['amount']}} | |
| Deposite Amount | {{$payment['amount']}} | {{--{{$payment['date']}} | --}}
| {!! $receipt_details->total_paid_label !!} | {{$receipt_details->total_paid}} | |
|---|---|---|
| {!! $receipt_details->total_due_label !!} | {{$receipt_details->total_due}} | |
| Prv. Bal. | {{$receipt_details->all_prev_due}} | |
| {!! $receipt_details->all_bal_label !!} | {{$receipt_details->all_due}} |
| {!! $receipt_details->total_quantity_label !!} | {{$receipt_details->total_quantity}} |
|---|---|
| {!! $receipt_details->total_items_label !!} | {{$receipt_details->total_items}} |
| {!! $receipt_details->subtotal_label !!} | {{$receipt_details->subtotal_exc_tax}} |
| {{$k}} | {{$v}} |
| @lang('lang_v1.exempt') | {{$receipt_details->total_exempt}} |
| Dlv. Chg. | {{$receipt_details->shipping_charges}} |
| {!! $receipt_details->packing_charge_label !!} | {{$receipt_details->packing_charge}} |
| {!! $receipt_details->discount_label !!} | {{$receipt_details->discount}} |
| {!! $receipt_details->line_discount_label !!} | {{$receipt_details->total_line_discount}} |
| {{$key}}: | (+) {{$val}} |
| {!! $receipt_details->reward_point_label !!} | (-) {{$receipt_details->reward_point_amount}} |
| {!! $receipt_details->tax_label !!} | (+) {{$receipt_details->tax}} |
| {!! $receipt_details->round_off_label !!} | {{$receipt_details->round_off}} |
| {!! $receipt_details->total_label !!} |
{{$receipt_details->total}}
@if(!empty($receipt_details->total_in_words))
({{$receipt_details->total_in_words}}) @endif |
| Total in ({{ $receipt_details->foreign_currency_code }}): | {{ $receipt_details->foreign_currency_total }} (@ = {{ $receipt_details->exchange_rate }}) |
| @lang('lang_v1.total_saving_all') | {{ $receipt_details->total_saving_all }} |
| {{$receipt_details->tax_summary_label}} | |
|---|---|
| {{$key}} | {{$val}} |
{!! nl2br($receipt_details->additional_notes) !!}