@extends('layouts.base_pdf') @section('inner_content') @php $grandTotal = 0; $grandTotalTax = 0; $grandSubTotal = 0; @endphp
CIEF WORLDWIDE SDN BHD (1134596-M)
No. 72-3, Jalan Jalil 1,
The Earth Bukit Jalil,
57000 Kuala Lumpur
Tel: 03-8082 1252
SST No: W10-2403-32000643
Summary
@php $companyModule = $invoice_transactions[0]->owner->owner->companyModule; @endphp {{--
Date: {{ $invoice_transactions[0]->created_at }}
--}}
Date: {{ \Carbon\Carbon::now() }}
 
Bill To
{{ $companyModule->name }}
@php $addresses = $companyModule->addresses()->where('status', '=', \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED)->where('type', '=', \App\Classes\ValueObjects\Constants\AddressType::BILLING)->first(); @endphp {{ $addresses->street_one }} {{ $addresses->street_two }} , {{ $addresses->district()->first()->name }}, {{ $addresses->postcode }} {{ $addresses->state()->first()->name }}, {{ $addresses->country()->first()->name }}
@php $contact = $companyModule->contacts()->first(); @endphp Phone: {{ $contact ? $contact->phone : '' }}


@foreach ($invoice_transactions as $key => $invoice_transaction) @foreach ($invoice_transaction->transactionDetails as $transaction_detail) @endforeach @php $grandSubTotal = $grandSubTotal + round($invoice_transaction->amount - $invoice_transaction->tax, 2); $grandTotalTax = $grandTotalTax + round($invoice_transaction->tax, 2); $grandTotal = $grandTotal + round($invoice_transaction->amount, 2); @endphp @endforeach
No Invoice No Description Qty Unit Price
(RM)
Tax (%) Tax Amount
(RM)
Sub Total
(RM)
{{ $key + 1 }} {{ $invoice_transaction->bill_no }} {!! $transaction_detail->name !!} {{ round($transaction_detail->quantity, 3) }} {{ round($transaction_detail->price, 2) }} {{ round($transaction_detail->tax_percentage, 2) }} {{ number_format(round($transaction_detail->tax_amount, 2), 2) }} {{ round($transaction_detail->amount, 2) }}
Total Taxable Amount {{ round($grandSubTotal, 2) }}
Total SST (6%) RM {{ round($grandTotalTax, 2) }}
Total Amount RM {{ round($grandTotal, 2) }}
@foreach ($invoice_transactions as $transaction) @include('pages.pdfs.shipping_invoice_sst_inner', ['invoice_transaction' => $transaction]) @include('pages.pdfs.packing_list_measurement', ['invoice_transaction' => $transaction]) @endforeach
This is generated by computer. No signature required. Page {PAGENO} of {nbpg}
@endsection