@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)) }} |
| 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 }} | @else{{ $header->customer->name }} | H/P: {{ $header->customer->contact }} | @endifREF: {{ $header->customer->info }} |
| No | Description | Quantity | UOM | Unit Price | Amount | @foreach ($items as $invoice)
|---|---|---|---|---|---|
| {{ $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) }} | ||||