@extends('layouts.app') @section('main-content')

{{ $companies->name }}

SOLAH AIRCOND SPECIALIST 202303043915 ({{ $companies->ssm }})
{!! nl2br($companies->address) !!}
H/P {{ $companies->contact }}

@if($companies->gst !=null || $companies->sst !=null)TAX @endif RECEIPT

@if($companies->gst !=null || $companies->sst != null) @if($companies->gst != null) GST ID No: {{ $companies->gst }}
@else SST ID No: {{ $companies->sst }}
@endif @endif
NO. : {{ '#'.str_pad($header->invoice_no, 5, '0', STR_PAD_LEFT) }} {{ $header->printstatus >= 1 ? 'R' : '' }} DATE : {{ date('d/m/Y', strtotime($header->invoice_date)) }}

@if ($header->customer->customertype == 'B') @else @endif
Bill To:
@if ( $header->customer->customertype == 'B') {{ $header->customer->companyname }}
{!! nl2br($header->customer->address) !!}
@endif
{{ $header->status == 'A' ? 'PAID' : 'UNPAID' }}
Attn: {{ $header->customer->name }} H/P: {{ $header->customer->contact }}{{ $header->customer->name }} H/P: {{ $header->customer->contact }}REF: {{ $header->customer->info }}({{ $header->customer->models }}) Tech: {{ empty($header->foreman) ? 'SOLAH' : strtoupper($header->foreman) }}
@foreach ($items as $invoice) @endforeach @if ($header->flushing != null) @endif @if ($header->var_rate != null) @endif
No Description Quantity UoM Unit Price Amount
1 {{ $invoice->product->description }} {{ $invoice->quantity }} {{ $invoice->item_uom->description }} {{ number_format($invoice->unit_price, 2) }} RM {{ number_format($invoice->total, 2) }}
2 Flushing Aircond System 1 Lot {{ number_format($header->flushing, 2)}} RM{{ number_format($header->flushing, 2)}}
3 Refill gas 134a + vaccum C.F Internal Oil Compressor 1 Lot {{ number_format($header->var_rate, 2)}} RM {{ number_format($header->var_rate, 2)}}
@if (!empty($header->labor_desc)) @endif @if($header->labour) @endif @if ($header->discount) @endif
SUBTOTAL RM {{ number_format($header->total + $header->var_rate + $header->flushing, 2) }}
LABOUR RM {{ number_format($header->labour, 2) }}
DISCOUNT - RM {{ number_format($header->discount, 2) }}
GRAND TOTAL RM {{ number_format($header->grand_total, 2) }}
@if ($header->customer->customertype == 'B' && $header->payment_term != 'Cash')
Please pay to:
{{ $companies->bankname }}
Account No: {{ $companies->accountno }}
@endif
Terms and conditions
  1. Goods sold are not refundable.
Thanks for your support, please come again.
THIS IS A COMPUTER GENERATED. NO SIGNATURE IS REQUIRED.
Print
{{ strtoupper($companies->name) }}: {{ strtoupper($companies->bankname) }} {{ $companies->accountno }}
@endsection @section('script') @endsection