@extends('layouts.app') @section('main-content')
{{ $companies->name }} ({{ $companies->ssm }})
{!! nl2br($companies->address) !!}
H/P: {{ $companies->contact }}
Email: {{ $companies->email }}

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

@if($companies->gst !=null || $companies->sst != null) @if($companies->gst != null) GST ID No: {{ $companies->gst }}
@else SST ID No: {{ $companies->sst }}
@endif @endif INV#: {{ str_pad($header->invoice_no, 5, '0', STR_PAD_LEFT) }}
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
Payment Terms
{{ $header->payment_term }}
Attn: {{ $header->customer->name }} H/P: {{ $header->customer->contact }}{{ $header->customer->name }} H/P: {{ $header->customer->contact }}REF: {{ $header->customer->info }}
@foreach ($items as $invoice) @endforeach @if ($header->labour) @endif @if ($header->discount) @endif
No Description Quantity UOM Unit Price Amount
{{ $loop->iteration }} {{ $invoice->product->description }} {{ $invoice->quantity }} {{ $invoice->item_uom->description }} {{ number_format($invoice->unit_price, 2) }} RM {{ number_format($invoice->total, 2) }}
SUBTOTAL RM {{ number_format($header->total, 2) }}
LABOUR CHARGE 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.
Notes
Thank you for your business.
THIS IS A COMPUTER GENERATED. NO SIGNATURE IS REQUIRED.
Print
@endsection @section('script') @endsection