update - 4 document blade files.

This commit is contained in:
weichien
2021-04-27 02:07:29 +08:00
parent 865fe11bf7
commit a78ebbd322
4 changed files with 426 additions and 269 deletions
@@ -1,73 +1,110 @@
@extends('layouts.base_pdf')
@section('inner_content')
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
}
</style>
<h1>Deliver Order</h1>
<div>
<div class="detail-box">
<div class="float-left">
<h2>Bill To</h2>
<div>Marking: {{ $transaction->booking->marking }}</div>
<div>Company: {{ $supplier->name }}</div>
<div>Phone: {{ $supplier->contacts()->first()->phone }}</div>
<br>
<div>EDO: {{ $transaction->bill_no }}</div>
<div>REF: {{ $transaction->payment_reference ?? '-' }}</div>
<div>Date: {{ $transaction->created_at }}</div>
</div>
<div class="float-right">
<div>
CIEF Worldwide Sdn Bhd (1134596-M)Malaysia Global Innovation & CreativityCentre, Level 1 CWS, Block 3730, PersiaranAPEC 63000 Cyberjaya
<br>
<htmlpageheader name="page-header">
<br><br>
<div class="separator"><strong><i>{{ $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 &amp; 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>Phone: 0182909252</div>
</div>
</div>
<div class="bill-box">
<table style="width: 100%">
<tbody>
<div class="number">EDO: {{ $transaction->bill_no }}</div>
<div class="ref">REF: {{ $transaction->payment_reference ?? '-' }}</div>
<div class="date">Date: {{ $transaction->created_at }}</div>
<div>&nbsp;</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">
sdas sda sdsd dtaman asdksd 4.000
</div>
<div>
Phone: {{ $supplier->contacts()->first()->phone }}
</div>
</td>
</tr>
</table>
<br>
<br>
<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 ($transaction->transactionDetails as $key => $transaction_detail)
<tr>
<td>Product Code</td>
<td>Product Name</td>
<td>Quantity</td>
<td>Price</td>
<td>Amount</td>
<td width="5%">{{ $key + 1 }}</td>
<td class="stock-code" width="10%">{{ $transaction_detail->product_code }}</td>
<td class="description">{{ $transaction_detail->product_name }}</td>
<td width="10%">{{ $transaction_detail->quantity }}</td>
<td width="12%">{{ $transaction_detail->convert_original_price() }}</td>
<td width="20%" class="right">{{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@foreach($transaction->transactionDetails as $transaction_detail)
<tr style="margin-bottom: 10px;">
<td>{{ $transaction_detail->product_code }}</td>
<td>{{ $transaction_detail->product_name }}</td>
<td>{{ $transaction_detail->quantity }}</td>
<td>MYR {{ $transaction_detail->convert_original_price() }}</td>
<td>MYR {{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@endforeach
{{-- <tr>
<td class="text-right" colspan="4">Subtotal</td>
<td>MYR </td>
</tr>
<tr>
<td class="text-right" colspan="4">Adjustment</td>
<td>MYR </td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr class="subtotal">
<td colspan="4"></td>
<td class="right">Subtotal</td>
<td class="right">{{ $transaction->convert_original_amount() }}</td>
</tr>
<tr>
<td colspan="4"></td>
<td class="right">Total</td>
<td class="total right">{{ $transaction->convert_original_amount() }}</td>
</tr>
<tr>
<td class="text-right" colspan="4">Biling Charges</td>
<td>MYR </td>
</tr> --}}
<tr>
<td class="text-right" colspan="4">Total</td>
<td>MYR {{ $transaction->convert_original_amount() }}</td>
</tr>
</tbody>
</table>
</div>
</div>
@endsection
</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
@@ -1,73 +1,113 @@
@extends('layouts.base_pdf')
@section('inner_content')
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
}
</style>
<h1>Payment Order</h1>
<div>
<div class="detail-box">
<div class="float-left">
<h2>Bill To</h2>
<div>Marking: {{ $transaction->booking->marking }}</div>
<div>Company: {{ $supplier->name }}</div>
<div>Phone: {{ $supplier->contacts()->first()->phone }}</div>
<br>
<div>EDO: {{ $transaction->bill_no }}</div>
<div>REF: {{ $transaction->payment_reference ?? '-' }}</div>
<div>Date: {{ $transaction->created_at }}</div>
</div>
<div class="float-right">
<div>
CIEF Worldwide Sdn Bhd (1134596-M)Malaysia Global Innovation & CreativityCentre, Level 1 CWS, Block 3730, PersiaranAPEC 63000 Cyberjaya
<br>
<htmlpageheader name="page-header">
<br><br>
<div class="separator"><strong><i>{{ $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 &amp; 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>
Invoice
</strong>
</div>
<div>Phone: 0182909252</div>
</div>
</div>
<div class="bill-box">
<table style="width: 100%">
<tbody>
<div class="number">EI#: {{ $transaction->bill_no }}</div>
<div class="ref">Ref# {{ $transaction->payment_reference ?? '-' }}</div>
<div class="date">Date: {{ $transaction->created_at }}</div>
<div>&nbsp;</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">
sdas sda sdsd dtaman asdksd 4.000
</div>
<div>
Phone: {{ $supplier->contacts()->first()->phone }}
</div>
</td>
</tr>
</table>
<br>
<br>
<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 ($transaction->transactionDetails as $key => $transaction_detail)
<tr>
<td>Product Code</td>
<td>Product Name</td>
<td>Quantity</td>
<td>Price</td>
<td>Amount</td>
<td width="5%">{{ $key + 1 }}</td>
<td class="stock-code" width="10%">{{ $transaction_detail->product_code }}</td>
<td class="description">{{ $transaction_detail->product_name }}</td>
<td width="10%">{{ $transaction_detail->quantity }}</td>
<td width="12%">{{ $transaction_detail->convert_original_price() }}</td>
<td width="20%" class="right">{{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@foreach($transaction->transactionDetails as $transaction_detail)
<tr style="margin-bottom: 10px;">
<td>{{ $transaction_detail->product_code }}</td>
<td>{{ $transaction_detail->product_name }}</td>
<td>{{ $transaction_detail->quantity }}</td>
<td>MYR {{ $transaction_detail->convert_original_price() }}</td>
<td>MYR {{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@endforeach
{{-- <tr>
<td class="text-right" colspan="4">Subtotal</td>
<td>MYR </td>
</tr>
<tr>
<td class="text-right" colspan="4">Adjustment</td>
<td>MYR </td>
</tr>
<tr>
<td class="text-right" colspan="4">Biling Charges</td>
<td>MYR </td>
</tr> --}}
<tr>
<td class="text-right" colspan="4">Total</td>
<td>MYR {{ $transaction->convert_original_amount() }}</td>
</tr>
</tbody>
</table>
</div>
</div>
@endsection
@endforeach
</tbody>
<tfoot>
<tr class="subtotal">
<td colspan="4"></td>
<td class="right">Subtotal</td>
<td class="right">{{ $transaction->convert_original_amount() }}</td>
</tr>
{{-- <tr class="billingcharges">
<td colspan="4"></td>
<td class="right">Billing Charges</td>
<td class="right">{{ $transaction->service_charge }}</td>
</tr> --}}
<tr>
<td colspan="4"></td>
<td class="right">Total</td>
<td class="total right">{{ $transaction->convert_original_amount() }}</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
@@ -1,74 +1,120 @@
@extends('layouts.base_pdf')
@section('inner_content')
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
}
</style>
<h1>Purchase Order</h1>
<div>
<div class="detail-box">
<div class="float-left">
<h2>Buyer</h2>
<div>Marking: {{ $transaction->booking->marking }}</div>
<div>Company: {{ $supplier->name }}</div>
<div>Phone: {{ $supplier->contacts()->first()->phone }}</div>
<br>
<htmlpageheader name="page-header">
<br><br>
<div class="separator"><strong><i>{{ $transaction->bill_no }}</i></strong></div>
</htmlpageheader>
<br>
<table>
<tr>
<td class="title">
<strong>Purchase Order</strong>
</td>
<td class="document-detail">
PO#: {{ $transaction->bill_no }} <br>
Ref#: {{ $transaction->payment_reference ?? '-' }} <br>
Date: {{ $transaction->created_at }}
</td>
</tr>
</table>
<br>
<table class="buyer-seller">
<tr>
<td width="50%" class="top">
<span class="buyer-seller-title">
Buyer
</span>
<br>
<div>PO: {{ $transaction->bill_no }}</div>
<div>REF: {{ $transaction->payment_reference ?? '-' }}</div>
<div>Date: {{ $transaction->created_at }}</div>
</div>
<div class="float-right">
<h2>Seller</h2>
<div>
CIEF Worldwide Sdn Bhd (1134596-M)Malaysia Global Innovation & CreativityCentre, Level 1 CWS, Block 3730, PersiaranAPEC 63000 Cyberjaya
<div class="buyer-company">
Marking#: {{ $transaction->booking->marking }}
</div>
<div>Phone: 0182909252</div>
</div>
</div>
<div class="bill-box">
<table style="width: 100%">
<tbody>
<span class="buyer-company">
{{ $supplier->name }}
</span>
<span class="reg">
{{-- {{ $supplier }} --}}
</span>
<br>
<span class="address">
{{-- {{ $buyer['address'] }} --}}
</span>
<br>
<span class="contact-no">
Phone: {{ $supplier->contacts()->first()->phone }}
</span>
</td>
<td width="50%" class="top">
<span class="buyer-seller-title">
Seller
</span>
<br>
<span class="buyer-company">
CIEF Worldwide Sdn Bhd (1134596-M)
</span>
<div class="address">
Malaysia Global Innovation & CreativityCentre, Level 1 CWS, Block 3730, PersiaranAPEC 63000 Cyberjaya
</div>
<div class="contact-no">
Phone: 0182909252
</div>
</td>
</tr>
</table>
<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 ($transaction->transactionDetails as $key => $transaction_detail)
<tr>
<td>Product Code</td>
<td>Product Name</td>
<td>Quantity</td>
<td>Price</td>
<td>Amount</td>
<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">{{ $transaction_detail->convert_original_price() }}</td>
<td width="20%" class="right top">{{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@foreach($transaction->transactionDetails as $transaction_detail)
<tr style="margin-bottom: 10px;">
<td>{{ $transaction_detail->product_code }}</td>
<td>{{ $transaction_detail->product_name }}</td>
<td>{{ $transaction_detail->quantity }}</td>
<td>MYR {{ $transaction_detail->convert_original_price() }}</td>
<td>MYR {{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@endforeach
{{-- <tr>
<td class="text-right" colspan="4">Subtotal</td>
<td>MYR </td>
</tr>
<tr>
<td class="text-right" colspan="4">Adjustment</td>
<td>MYR </td>
</tr>
<tr>
<td class="text-right" colspan="4">Biling Charges</td>
<td>MYR </td>
</tr> --}}
<tr>
<td class="text-right" colspan="4">Total</td>
<td>MYR {{ $transaction->convert_original_amount() }}</td>
</tr>
</tbody>
</table>
</div>
</div>
@endsection
@endforeach
</tbody>
<tfoot>
<tr class="subtotal">
<td colspan="4"></td>
<td class="right middle">Subtotal</td>
<td class="right middle">{{ $transaction->convert_original_amount() }}</td>
</tr>
{{-- <tr class="billingcharges">
<td colspan="4"></td>
<td class="right middle">Billing Charges</td>
<td class="right middle">{{ number_format($billingcharges, 2) }}</td>
</tr> --}}
<tr>
<td colspan="4"></td>
<td class="right middle">Total</td>
<td class="total right middle">{{ $transaction->convert_original_amount() }}</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
@@ -1,73 +1,107 @@
@extends('layouts.base_pdf')
@section('inner_content')
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
}
</style>
<h1>Supplier Deliver Order</h1>
<div>
<div class="detail-box">
<div class="float-left">
<h2>Bill To</h2>
<div>Marking: {{ $transaction->booking->marking }}</div>
<div>Company: {{ $supplier->name }}</div>
<div>Phone: {{ $supplier->contacts()->first()->phone }}</div>
<br>
<htmlpageheader name="page-header">
<br>
<table width="100%" style="border-bottom: 1px solid black;">
<tr>
<td
style="text-align: center; color: red; text-transform: uppercase; font-weight: bold; font-size: 18px; padding-bottom: 5px;">
Atvantic Import & Export Snd. Bhd (1309816-P)</td>
</tr>
</table>
</htmlpageheader>
<br>
<table>
<tr>
<td class="title">
<strong>Delivery Order</strong>
</td>
<td class="document-detail">
PO#: {{ $transaction->bill_no }} <br>
Ref#: {{ $transaction->payment_reference ?? '-' }} <br>
Date: {{ $transaction->created_at }}
</td>
</tr>
</table>
<br>
<table class="buyer-seller">
<tr>
<td width="50%" class="top">
<span class="buyer-seller-title">
Buyer
</span>
<br>
<div>EDO: {{ $transaction->bill_no }}</div>
<div>REF: {{ $transaction->payment_reference ?? '-' }}</div>
<div>Date: {{ $transaction->created_at }}</div>
</div>
<div class="float-right">
<div>
CIEF Worldwide Sdn Bhd (1134596-M)Malaysia Global Innovation & CreativityCentre, Level 1 CWS, Block 3730, PersiaranAPEC 63000 Cyberjaya
<div class="buyer-company">
CIEF Worldwide Sdn Bhd (1134596-M)
</div>
<div>Phone: 0182909252</div>
</div>
</div>
<div class="bill-box">
<table style="width: 100%">
<tbody>
<span class="buyer-company">
Malaysia Global Innovation & CreativityCentre, Level 1 CWS, Block 3730, PersiaranAPEC 63000 Cyberjaya
</span>
<span class="reg">
{{-- {{ $supplier }} --}}
</span>
<br>
<span class="address">
{{-- {{ $buyer['address'] }} --}}
</span>
<br>
<span class="contact-no">
Phone: 0182909252
</span>
</td>
</tr>
</table>
<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 ($transaction->transactionDetails as $key => $transaction_detail)
<tr>
<td>Product Code</td>
<td>Product Name</td>
<td>Quantity</td>
<td>Price</td>
<td>Amount</td>
<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">{{ $transaction_detail->convert_original_price() }}</td>
<td width="20%" class="right top">{{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@foreach($transaction->transactionDetails as $transaction_detail)
<tr style="margin-bottom: 10px;">
<td>{{ $transaction_detail->product_code }}</td>
<td>{{ $transaction_detail->product_name }}</td>
<td>{{ $transaction_detail->quantity }}</td>
<td>MYR {{ $transaction_detail->convert_original_price() }}</td>
<td>MYR {{ $transaction_detail->convert_original_amount() }}</td>
</tr>
@endforeach
{{-- <tr>
<td class="text-right" colspan="4">Subtotal</td>
<td>MYR </td>
</tr>
<tr>
<td class="text-right" colspan="4">Adjustment</td>
<td>MYR </td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr class="subtotal">
<td colspan="4"></td>
<td class="right middle">Subtotal</td>
<td class="right middle">{{ $transaction->convert_original_amount() }}</td>
</tr>
<tr>
<td colspan="4"></td>
<td class="right middle">Total</td>
<td class="total right middle">{{ $transaction->convert_original_amount() }}</td>
</tr>
<tr>
<td class="text-right" colspan="4">Biling Charges</td>
<td>MYR </td>
</tr> --}}
<tr>
<td class="text-right" colspan="4">Total</td>
<td>MYR {{ $transaction->convert_original_amount() }}</td>
</tr>
</tbody>
</table>
</div>
</div>
@endsection
</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