Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- {{-- @include('layouts.printingcss') --}}
- {{--
- <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> --}}
- <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
- <style>
- /* @media print {
- body {
- width: 816px;
- } */
- @page {
- margin: 0;
- margin-right: 15px;
- }
- #items {
- margin: 0 auto
- width: 1000px;
- border: none !important;
- }
- .table {
- width: 1000px;
- margin: 0 auto;
- border: none !important;
- }
- .table,
- .table tr,
- .table td {
- border: none;
- }
- .td {
- padding: 20px 45px 0 20px !important;
- }
- .p {
- font-size: 11px !important;
- margin-bottom: 5px;
- text-transform: none;
- }
- .input-blank-1,
- .input-blank-2 {
- /*margin-bottom: 10px;*/
- position: relative;
- }
- .input-blank-1 .p {
- display: inline-block;
- background-color: white;
- position: relative;
- top: 8px;
- font-weight: bold;
- }
- .input-blank-1 .span {
- display: inline-block;
- width: 100%;
- height: 1px;
- border-bottom: 1px solid black;
- }
- .input-blank-2 .p {
- display: block;
- background-color: white;
- font-weight: bold;
- }
- .input-blank-2 .span {
- margin-top: 30px;
- display: block;
- width: 100%;
- height: 1px;
- border-bottom: 1px solid black;
- }
- .text-center {
- text-align: center;
- }
- .main-content {
- padding: 0 10px 10px 10px;
- margin: 0;
- }
- .input-data {
- position: absolute;
- top: 0;
- left: 90px;
- }
- .invisible {
- opacity: 0;
- }
- .text-right {
- text-align: right;
- right: 0;
- }
- * {
- margin: 0;
- padding: 0;
- text-transform: uppercase;
- }
- body {
- /* font: 14px/1.4 "Times New Roman", Times, sans-serif; */
- }
- #page-wrap {
- width: 1000px;
- margin: 0 auto;
- }
- textarea {
- border: 0;
- font: 14px Georgia, Serif;
- overflow: hidden;
- resize: none;
- }
- table {
- border-collapse: collapse;
- }
- table td,
- table th {
- /*border: 1px solid black;*/
- padding: 1px 5px 1px 5px;
- }
- #header {
- height: 15px;
- width: 100%;
- margin: 20px 0;
- background: #222;
- text-align: center;
- color: white;
- font: bold 15px Helvetica, Sans-Serif;
- text-decoration: uppercase;
- letter-spacing: 20px;
- padding: 8px 0px;
- }
- .textCenter{
- text-align: center;
- }
- #address {
- width: 250px;
- height: 150px;
- float: left;
- }
- #customer {
- overflow: hidden;
- }
- #logo {
- text-align: right;
- float: right;
- position: relative;
- margin-top: 25px;
- border: 1px solid #fff;
- max-width: 540px;
- max-height: 100px;
- overflow: hidden;
- }
- ,
- #logo.edit {
- border: 1px solid #000;
- margin-top: 0px;
- max-height: 125px;
- }
- #logoctr {
- display: none;
- }
- #logo:hover #logoctr,
- #logo.edit #logoctr {
- display: block;
- text-align: right;
- line-height: 25px;
- background: #eee;
- padding: 0 5px;
- }
- #logohelp {
- text-align: left;
- display: none;
- font-style: italic;
- padding: 10px 5px;
- }
- #logohelp input {
- margin-bottom: 5px;
- }
- .edit #logohelp {
- display: block;
- }
- .edit #save-logo,
- .edit #cancel-logo {
- display: inline;
- }
- .edit #image,
- #save-logo,
- #cancel-logo,
- .edit #change-logo,
- .edit #delete-logo {
- display: none;
- }
- #customer-title {
- font-size: 20px;
- font-weight: bold;
- float: left;
- }
- #meta {
- margin-top: 1px;
- width: 50%;
- float: right;
- }
- #meta td {
- text-align: right;
- }
- #meta td.meta-head {
- text-align: left;
- background: #eee;
- }
- #meta td textarea {
- width: 100%;
- height: 20px;
- text-align: right;
- }
- #items {
- font-size: 12px;
- clear: both;
- width: 970px;
- margin: 0 auto;
- border: 1px solid black;
- }
- td {
- padding-bottom: 0px !important;
- }
- #items th {
- background: #eee;
- }
- #items textarea {
- width: 80px;
- height: 50px;
- }
- #items tr.item-row td {
- border: 0;
- vertical-align: top;
- }
- /*#items td.description { width: 300px; }*/
- /*#items td.item-name { width: 175px; }*/
- #items td.description textarea,
- #items td.item-name textarea {
- width: 100%;
- }
- #items td.total-line {
- border-right: 0;
- text-align: right;
- }
- #items td.total-value {
- border-left: 0;
- padding: 10px;
- }
- #items td.total-value textarea {
- height: 20px;
- background: none;
- }
- #items td.balance {
- background: #eee;
- }
- #items td.blank {
- border: 0;
- }
- #terms {
- text-align: center;
- margin: 20px 0 0 0;
- }
- #terms h5 {
- text-transform: uppercase;
- font: 13px Helvetica, Sans-Serif;
- letter-spacing: 10px;
- border-bottom: 1px solid black;
- padding: 0 0 8px 0;
- margin: 0 0 8px 0;
- }
- #terms textarea {
- width: 100%;
- text-align: center;
- }
- textarea:hover,
- textarea:focus,
- #items td.total-value textarea:hover,
- #items td.total-value textarea:focus,
- .delete:hover {
- background-color: #EEFF88;
- }
- .delete-wpr {
- position: relative;
- }
- .delete {
- display: block;
- color: #000;
- text-decoration: none;
- position: absolute;
- background: #EEEEEE;
- font-weight: bold;
- padding: 0px 3px;
- border: 1px solid;
- top: -6px;
- left: -22px;
- font-family: Verdana;
- font-size: 12px;
- }
- div,
- td,
- th,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- p,
- span {
- /* font-size: 12px !important; */
- }
- th,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- text-transform: capitalize !important;
- }
- .number,
- .date {
- text-align: right !important;
- padding-right: 10px !important;
- }
- /* } */
- /* @font-face {
- font-family: 'FakeReceipt';
- font-style: normal;
- font-weight: 400;
- src: local("\263A"), url(/fonts/fake-receipt.ttf) format("truetype");
- }
- @font-face {
- font-family: 'EpsonPixeled';
- font-style: normal;
- font-weight: 400;
- src: local("\263A"), url(/fonts/epson-pixeled.ttf) format("truetype");
- }
- */
- * {
- font: 15px/1.4 'Lato', sans-serif;
- font-weight: 400;
- }
- </style>
- </head>
- <body>
- <div class="content-wrapper">
- <section class="content">
- <div id="page-wrap">
- {{-- <table class="table invisible">
- <tr>
- <td class="td">
- <img id="image" src="/images/cdologo.jpg" alt="logo" />
- </td>
- <td class="td">
- <p class="p">No. Road 44 BLK 25 Lot 11</p>
- <p class="p">Lower Congress Village, Caloocan City</p>
- <p class="p">0942-827-5237 / 0917-142-8309</p>
- </td>
- <td class="td">
- <hc2 style="font-size: 16px !important; margin-bottom: 10px;">DELIVERY RECEIPT</h2>
- <p style="font-size: 16px !important;">No.</p>
- </td>
- </tr>
- </table> --}}
- <div style="height: 129px;"></div>
- <table class="table">
- <tr>
- <td class="td" style="width: 70%;">
- <div class="input-blank-1">
- <p class="p invisible">Sold to :</p>
- <p class="input-data">{{ $customer_info->customer_name }}</p>
- <span class="span invisible" />
- </div>
- <div class="input-blank-1">
- <p class="p invisible">Address :</p>
- <p class="input-data">{{ $customer_info->delivery_address }}</p>
- <span class="span invisible" />
- </div>
- <div class="input-blank-1">
- <p class="p invisible">TIN(BUYER) :</p>
- <p class="input-data">AMOR2 CINEMA KALENTOASADADADADADNG</p>
- <span class="span invisible" />
- </div>
- <div class="input-blank-1">
- <p class="p invisible">BUS.STYLE :</p>
- <p class="input-data">123412412</p>
- <span class="span invisible" />
- </div>
- </td>
- <td class="td">
- <div class="input-blank-1">
- <p class="p invisible">Terms :</p>
- <p class="input-data text-right">{{ $payment_type->payment_type }}</p>
- <span class="span invisible" />
- </div>
- <div class="input-blank-1">
- <p class="p invisible">DATE :</p>
- <?php
- $date = date_create($sale_invoice->posting_date);
- ?>
- <p class="input-data text-right">{{ date_format($date, "m/d/Y") }}</p>
- <span class="span invisible" />
- </div>
- <div class="input-blank-1">
- <p class="p invisible">OSCA/PWD ID No. :</p>
- <p class="input-data text-right">{{ $payment_type->payment_type }}</p>
- <span class="span invisible" />
- </div>
- <div class="input-blank-1">
- <p class="p invisible">SC/PWD Signature :</p>
- <p class="input-data text-right">{{ $payment_type->payment_type }}</p>
- <span class="span invisible" />
- </div>
- </td>
- </tr>
- </table>
- <div class="main-content">
- <table id="items">
- <tr>
- <th style="width: 66px">PROD. ID</th>
- <th style="width: 425px">PRODUCT NAME</th>
- <th>Qty/UOM</th>
- <th>KILOS</th>
- {{-- <th>Factor</th>
- <th>Total Qty</th> --}}
- <th> Non-VAT Price</th>
- <th>NET AMOUNT</th>
- <!-- <th>Gross Amount</th>
- <th>Discount Amount</th>
- <th>Net Amount</th> -->
- </tr>
- <?php $total_price_counter=0; ?>
- <?php $total_gross=0; ?>
- <?php $total_piece = 0; ?>
- <?php $total_case = 0; ?>
- <?php $total_discount = 0; ?>
- <?php $total_kilos = 0; ?>
- <?php $total_kilos = 0; ?>
- @foreach($sale_order_products as $value)
- <?php
- if ($value->uom == 'Case') {
- $total_case += $value->product_qty;
- }
- if ($value->uom == 'Piece') {
- $total_piece += $value->product_qty;
- }
- ?>
- <tr>
- <td>
- <div name="prodId"class="cost">{{ $value->product_code }}</div>
- </td>
- <td name="prodName">
- <div class="cost">{{ $value->product_name }}</div>
- </td>
- <td name="qtyUom">
- <div class="cost textCenter">{{ $value->product_qty }} {{ $value->uom }}</div>
- </td>
- <?php $total_qty = $value->product_qty * $value->uom_factor; ?>
- <!-- total kilos -->
- <td class="number" name="totalKilos">
- <div class="cost textCenter">{{ number_format(($value->product_qty * $value->uom_factor) * $value->net_weight, 3) }}</div>
- </td>
- <!-- <td class="number">
- <div class="cost">{{ number_format($value->product_discounted_list_price,2) }}</div>
- </td> -->
- <?php
- $non_vat=($value->product_discount_price/1.12);
- $total_price= $total_qty*$value->product_discounted_list_price
- ?>
- <td class="total-value number" name="nonVat">
- <div id="total textCenter">{{number_format($non_vat,2)}}</div>
- </td>
- <!-- NON VAT -->
- <!-- <td class="number">
- <div class="cost"><?php
- $test_discount = DB::table('sale_invoice_detail')
- ->where('sale_invoice_id', $sale_invoice->id)
- ->where('product_id', $value->product_id)
- ->leftJoin('products', 'sale_invoice_detail.product_id', '=', 'products.id')
- ->first();
- $product_discount = $total_price - $test_discount->product_discount_price;
- ?>
- {{ number_format($product_discount,2)}}</div>
- </div>
- </td> -->
- <td class="number" name="netAmt">
- <div class="cost textCenter">{{ number_format($value->product_discount_price,2) }}</div>
- </td>
- </tr>
- <?php $total_gross += ($value->product_discounted_list_price*$total_qty); ?>
- <?php $total_price_counter += $total_price; ?>
- <?php $total_kilos += ($value->product_qty * $value->uom_factor) * $value->net_weight; ?>
- <?php $total_discount += $product_discount ?>
- @endforeach
- </table>
- <!-- <tr> -->
- <!-- <td colspan="3" class="total-line">Total Kilos</td>
- <td class="total-value number" style="border-right-color: rgba(0,0,0,0)" codlspan="2">
- <div id="total">{{ number_format($total_kilos, 3) }}</div>
- </td> -->
- <!-- <td clospan="2" class="total-line">Total Gross</td>
- <td class="total-value number" colspan="2">
- <div id="total">₱{{ number_format($total_gross,2) }}</div>
- </td> -->
- <!-- </tr> -->
- <table align="right" style="margin-top: 585px;">
- <tr>
- <td colspan="4">Total Sales (VAT Inclusive)</td>
- <td colspan="2" class="total-value number">
- <div>₱{{number_format($sale_invoice->si_total_price, 2)}}</div>
- </td>
- </tr>
- <tr>
- <td colspan="4">Less: VAT</td>
- <td colspan="2" class="total-value number">
- <div>5000</div>
- </td>
- </tr>
- <tr>
- <td colspan="4" class="total-line ">Amount: Net of VAT</td>
- <td class="total-value number" colspan="2" style=" border-bottom-style: solid;">
- <div id="total">₱{{ number_format($net=$sale_invoice->si_total_price,2) }}</div>
- </td>
- </tr>
- <tr>
- <td colspan="4" class="total-line">Less: SC/PWD Discount</td>
- <td class="total-value number" colspan="2">{{$sale_invoice->discount_price}}% - ₱
- <?php echo number_format(abs($sale_invoice->so_total_price - $sale_invoice->si_total_price), 2); ?>
- </td>
- </tr>
- <tr>
- <td colspan="4" class="total-line" style="vertical-align:bottom">Amount Due</td>
- <td class="total-value number" colspan="2" style=" border-bottom-style: solid; vertical-align:bottom">₱{{number_format($net,2)}}</td>
- </tr>
- @if(isset($with_vat))
- <tr>
- <td></td>
- <td></td>
- <td class="total-line" colspan="2" style="padding-top:10px !important;">Add: VAT</td>
- <?php $with_vat=($sale_invoice->si_total_price-$sale_invoice->si_total_price/1.12);
- $total_wth_vat=($with_vat-$sale_invoice->si_total_price)?>
- <td class="total-value number" colspan="4" style="padding-top:10px !important;">₱{{number_format($with_vat, 2)}}</td>
- </tr>
- <tr style="height: 40px;">
- <td></td>
- <td></td>
- <td class="total-line">Total Amount Due</td>
- <td class="total-value number" colspan="4">₱{{number_format($sale_invoice->si_total_price, 2)}}</td>
- </tr>
- @endif
- </table>
- </div>
- <table class="table invisible">
- <tr>
- <td class="td">
- <div class="input-blank-2">
- <p class="p">Prepared by :</p>
- <span class="span" />
- </div>
- </td>
- <td class="td">
- <div class="input-blank-2">
- <p class="p">Checked by :</p>
- <span class="span" />
- </div>
- </td>
- <td class="td">
- <p class="text-center" style="margin-bottom: 15px !important;">Received the above items in good order and
- condition:</p>
- <div class="input-blank-1">
- <p class="p">By :</p>
- <span class="span" />
- </div>
- <p class="text-center">Authorized Signature</p>
- </td>
- </tr>
- </table>
- </div>
- </section>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement