mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
154 lines
6.4 KiB
PHP
154 lines
6.4 KiB
PHP
@extends('layouts.base_pdf')
|
|
@section('inner_content')
|
|
<br>
|
|
<htmlpageheader name="page-header">
|
|
<br><br>
|
|
<div class="separator"><strong><i>{{ $invoice_transaction->bill_no }}</i></strong></div>
|
|
</htmlpageheader>
|
|
|
|
<table>
|
|
<tr>
|
|
<td class="header-logo">
|
|
<img src="{{ public_path('images/ri_1.png') }}" alt="logo" id="logo" class="logo">
|
|
</td>
|
|
<td class="header-cief-address">
|
|
<span class="company-name">
|
|
<strong>
|
|
CIEF WORLDWIDE SDN BHD
|
|
</strong>
|
|
</span>
|
|
<span class="company-reg">(1134596-M)</span><br>
|
|
Malaysian Global Innovation & Creativity Center <br>
|
|
Level 1 CWS, Block 3730, Persiaran APEC, <br>
|
|
63000 Cyberjaya, Malaysian. <br>
|
|
Tel: 018-2909252
|
|
</td>
|
|
<td class="header-details">
|
|
<div class="title">
|
|
<strong>
|
|
Delivery Order
|
|
</strong>
|
|
</div>
|
|
|
|
<div class="number">EDO: {{ $invoice_transaction->bill_no }}</div>
|
|
|
|
|
|
<div class="ref">REF: {{ $invoice_transaction->payment_reference ?? '-' }}</div>
|
|
<div class="date">Date: {{ $invoice_transaction->created_at }}</div>
|
|
<div> </div>
|
|
</div>
|
|
</td>
|
|
<tr>
|
|
<td colspan="3" class="bill-to">
|
|
<span class="sub-title">
|
|
Bill To
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3" class="address">
|
|
<div class="label">
|
|
Company: {{ $supplier->name }}
|
|
</div>
|
|
<div class="address">
|
|
@php
|
|
$addresses = $supplier->addresses()->first();
|
|
@endphp
|
|
{{ $addresses->street_one }}
|
|
{{ $addresses->street_two }}
|
|
{{ $addresses->state()->first()->name }}
|
|
{{ $addresses->district()->first()->name }}
|
|
</div>
|
|
<div>
|
|
Phone: {{ $supplier->contacts()->first()->phone }}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
<br>
|
|
<table class="line-table" style="overflow: wrap" autosize="1">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">No</th>
|
|
<th class="stock-code" width="10%">Stock Code</th>
|
|
<th class="description">Description</th>
|
|
<th width="10%">Quantity</th>
|
|
<th width="12%">Unit Price (RM)</th>
|
|
<th width="10%">Total Amount<br>(RM)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($po_order_transaction->transactionDetails as $key => $transaction_detail)
|
|
<tr>
|
|
<td width="5%" class="center top">{{ $key + 1 }}</td>
|
|
<td class="stock-code top" width="10%">{{ $transaction_detail->product_code }}</td>
|
|
<td class="description">{{ $transaction_detail->product_name }}</td>
|
|
<td width="10%" class="center top">{{ $transaction_detail->quantity }}</td>
|
|
<td width="12%" class="center top">
|
|
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
|
|
{{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2) }}
|
|
@else
|
|
{{ number_format($transaction_detail->price, 2) }}
|
|
@endif
|
|
</td>
|
|
<td width="20%" class="right top">
|
|
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
|
|
{{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->amount, 2) }}
|
|
@else
|
|
{{ number_format($transaction_detail->amount, 2) }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr class="subtotal">
|
|
<td colspan="4"></td>
|
|
<td class="right middle">Subtotal</td>
|
|
<td class="right middle">
|
|
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
|
|
{{ number_format( (1/$invoice_transaction->currency_rate) * $invoice_transaction->amount, 2) }}
|
|
@else
|
|
{{ number_format($invoice_transaction->amount, 2) }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
<tr class="billingcharges">
|
|
<td colspan="4"></td>
|
|
<td class="right">Service Charges</td>
|
|
<td class="right">
|
|
{{ number_format($invoice_transaction->service_charge, 2) }}
|
|
</td>
|
|
</tr>
|
|
@if($invoice_transaction->tax > 0)
|
|
<tr class="billingcharges">
|
|
<td colspan="4"></td>
|
|
<td class="right">Tax</td>
|
|
<td class="right">{{ number_format($invoice_transaction->tax, 2) }}</td>
|
|
</tr>
|
|
@endif
|
|
<tr>
|
|
<td colspan="4"></td>
|
|
<td class="right middle">Total</td>
|
|
<td class="total right middle">
|
|
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
|
|
{{ number_format( ((1/$invoice_transaction->currency_rate) * $invoice_transaction->amount) - $invoice_transaction->service_charge - $invoice_transaction->tax, 2) }}
|
|
@else
|
|
{{ number_format($invoice_transaction->amount - $invoice_transaction->service_charge - $invoice_transaction->tax, 2) }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
<htmlpagefooter name="page-footer">
|
|
<table width="100%">
|
|
<tr>
|
|
<td style="text-align: right; ">This is generated by computer. No signature required.</td>
|
|
<td style="text-align: right; ">Page {PAGENO} of {nbpg}</td>
|
|
</tr>
|
|
</table>
|
|
</htmlpagefooter>
|
|
@endsection
|