Files
exchange/resources/views/pdf/invoice.blade.php
T
2020-09-10 00:32:23 +08:00

169 lines
4.5 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
<style>
body {
font-family: Droidsans;
}
.clear-fix::after {
content: "";
clear: both;
display: table;
}
.letter-head {
float: left;
display: inline-block;
position: relative;
}
img.logo {
display: inline;
position: absolute;
top: 10px;
right: 0;
}
img {
height: 7em;
width: 18%;
}
.cief-address {
position: absolute;
left: 18%;
top: -30px;
}
.details {
position: absolute;
left: 76%;
top: -20px;
}
.title {
font-size: 2em;
font-weight: bolder;
}
.sub-title {
font-size: 1.3em;
font-weight: bold;
}
.label {
font-size: 1.1em;
font-weight: bold;
}
.bill-to {
margin-top: 30px;
}
table {
width: 100%;
}
th {
border-bottom: 1px solid black;
}
.clear-fix::after {
content: "";
clear: both;
display: table;
}
td {
padding: 0.4em;
text-align: center;
}
td.description, th.description {
text-align: left;
}
td, th {
margin-top: 0.6em;
margin-right: 0.6em;
}
.subtotal td {
border-top: 1px solid black;
}
.total {
border-top: 1px solid black;
border-bottom: 1px double black;
font-weight: bolder;
}
.address {
}
</style>
</head>
<body>
<div class="header clear-fix">
<img src="https://firebasestorage.googleapis.com/v0/b/edmondtm-1d8ed.appspot.com/o/logo.png?alt=media&token=e8458dc5-b9cd-4db4-b2c9-b953c0b9d09e" alt="logo" id="logo">
<p class="cief-address">
<span class="company-name">CIEF WORLDWIDE SDN BHD</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
</p>
<div class="details">
<div class="title">{{$title}}</div>
@if($detail['ei'])
<div class="number">EI#: {{$detail['ei']}}</div>
@endif
@if($detail['edo'])
<div class="number">EDO#: {{$detail['edo']}}</div>
@endif
<div class="ref">Ref#: {{$detail['ref']}}</div>
<div class="date">Date: {{$detail['date']}}</div>
<div class="page">Page: 1 of 1</div>
</div>
</div>
<div class="bill-to sub-title">
Bill To
</div>
<div class="address">
<div class="label">
{{$billto['buyer_company']}}
</div>
<div class="address">
{{$billto['address']}}
</div>
<div>
Phone: {{$billto['phone']}}
</div>
</div>
<br>
<br>
<table>
<thead>
<tr>
<th>No</th>
<th class="description">Stock Code</th>
<th class="description">Description</th>
<th>Quantity</th>
<th>Unit Price (RM)</th>
<th>Total Amount (RM)</th>
</tr>
</thead>
<tbody>
@foreach ($lines as $line)
<tr>
<td>{{$line->order}}</td>
<td class="description">{{$line->stock_code}}</td>
<td class="description">{{$line->description}}</td>
<td>{{$line->quantity}}</td>
<td>{{number_format($line->unit_price_rm, 2)}}</td>
<td>{{number_format($line->total, 2)}}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr class="subtotal">
<td colspan="4"></td>
<td>Subtotal</td>
<td>{{ number_format($amount, 2) }}</td>
</tr>
<tr>
<td colspan="4"></td>
<td>Total</td>
<td class="total">{{ number_format($amount, 2) }}</td>
</tr>
</tfoot>
</table>
</body>
</html>