8 changed files with 132 additions and 8 deletions
-
9app/Entities/Invoices/Invoice.php
-
5app/Http/Controllers/InvoicesController.php
-
2public/assets/css/app.s.css
-
1resources/lang/id/app.php
-
3resources/lang/id/invoice.php
-
107resources/views/invoices/pdf.blade.php
-
12resources/views/invoices/show.blade.php
-
1routes/web/invoices.php
@ -0,0 +1,107 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|||
<title>{{ trans('invoice.print') }} - {{ $invoice->number }}</title> |
|||
<style> |
|||
html { |
|||
margin: 10px 20px 0px 20px; |
|||
} |
|||
table.receipt-table { |
|||
/*border: 1px solid #aaa;*/ |
|||
border-collapse: collapse; |
|||
/*font-size:14px;*/ |
|||
max-width: 750px; |
|||
} |
|||
table.receipt-table th, table.receipt-table td { |
|||
padding: 5px; |
|||
} |
|||
.text-left { |
|||
text-align: left; |
|||
} |
|||
.text-center { |
|||
text-align: center; |
|||
} |
|||
.text-right { |
|||
text-align: right; |
|||
} |
|||
</style> |
|||
</head> |
|||
<body> |
|||
<table class="receipt-table"> |
|||
<tbody> |
|||
<tr> |
|||
<td style="width:80px;"> |
|||
{{ Html::image(url('assets/imgs/logo.png'), '', ['style' => 'width:100%']) }} |
|||
</td> |
|||
<td style="width:400px"> |
|||
<div style="width:280px"> |
|||
<h1 style="margin:0px; border-bottom: 3px; font-size: 21.5px">JasaWebsiteBanjarmasin.com</h1> |
|||
<div style="font-size:13px">Jasa Pembuatan Website dan Aplikasi Berbasis Web</div> |
|||
</div> |
|||
</td> |
|||
<td style="width:270px; text-align: center;"> |
|||
<h3 style="margin: 3px 0; font-size: 24px">{{ trans('invoice.invoice') }}</h3> |
|||
<div>{{ trans('invoice.number') }} : INV-{{ $invoice->number }}</div> |
|||
<div>{{ trans('app.date') }} : {{ dateId($invoice->created_at->format('Y-m-d')) }}</div> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="3"> |
|||
<h4 style="margin: 3px 0;">{{ trans('app.to') }} :</h4> |
|||
<p><strong>{{ $invoice->project->customer->name }}</strong></p> |
|||
</td> |
|||
</tr> |
|||
<tr><td colspan="3">{{ trans('project.features') }} :</td></tr> |
|||
<tr> |
|||
<td colspan="3"> |
|||
<table border="1" class="receipt-table" style="width: 100%"> |
|||
<thead style="background-color: #FFC800"> |
|||
<tr> |
|||
<th>{{ trans('app.table_no') }}</th> |
|||
<th class="text-left">{{ trans('invoice.item_description') }}</th> |
|||
<th>{{ trans('invoice.item_amount') }}</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
@foreach ($invoice->items as $key => $item) |
|||
<tr> |
|||
<td class="text-center">{{ 1 + $key }}</td> |
|||
<td>{{ $item['description'] }}</td> |
|||
<td class="text-right">{{ formatRp($item['amount']) }}</td> |
|||
</tr> |
|||
@endforeach |
|||
</tbody> |
|||
<tfoot> |
|||
<tr> |
|||
<th colspan="2" class="text-right">{{ trans('app.total') }}</th> |
|||
<th colspan="2" class="text-right">{{ formatRp($invoice->amount) }}</th> |
|||
</tr> |
|||
</tfoot> |
|||
</table> |
|||
</td> |
|||
</tr> |
|||
<tr style="vertical-align: top;"> |
|||
<td>Terbilang : </td> |
|||
<td colspan="2" style="font-weight: bold;"> |
|||
{{ ucwords(Terbilang::make($invoice->amount)) }} Rupiah |
|||
</td> |
|||
</tr> |
|||
<tr style="vertical-align: top;"> |
|||
<td colspan="3"> |
|||
<p>Pembayaran dapat dilakukan melalui transfer ke rekening berikut:</p> |
|||
No. Rek : <strong>BCA // 782-0088-543</strong><br>
|
|||
An. <strong>NAFIES LUTHFI</strong> |
|||
<p>Terima kasih atas kerjasamanya.</p> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="3" class="text-center"> |
|||
Banjarmasin, {{ dateId($invoice->created_at->format('Y-m-d')) }} <br><br><br><br> |
|||
<div style="font-weight: bold;">JasaWebsiteBanjarmasin.com</div> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</body> |
|||
</html> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue