One Hat Cyber Team
Your IP :
3.14.12.254
Server IP :
104.21.80.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
app.gftag.com
/
storage
/
framework
/
views
/
View File Name :
2797976dceeafb460ac59ddc0de9064b.php
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Purchase Order - Bayer</title> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" /> <style type="text/css" media="all"> .wrapper * { font-size: 12px !important; } .footer { position: fixed; bottom: -20px; left: 0px; right: 0px; height: 50px; /** Extra personal styles **/ background-color: #eeeeee; color: #000; text-align: center; line-height: 35px; } .footer p { font-size: 14px !important; } </style> </head> <body> <div class="wrapper"> <section class="invoice"> <div class="row" style="margin-bottom:1em;"> <div class="col-xs-12"> <table width="100%"> <tr> <td> <?php if($data['po_details']->organisation->logo): ?> <img src="<?php echo e(public_path($data['po_details']->organisation->logo)); ?>" width="100" /> <?php endif; ?> </td> <td style="text-align:right;"> <b>Purchase order No. :</b> <?php echo e($data['po_details']->po_prefix .'/'. date('Y', strtotime($data['po_details']->created_at)) .'/'. $data['po_details']->po_id); ?> <br /> <b>Date : </b> <?php echo e($data['po_details']->po_date); ?> </h5> </td> </tr> </table> </div> </div> <div class="row" style="margin-bottom:1em;"> <div class="col-xs-12"> <p class="lead"></p> <div class="table-responsive"> <table width="100%" style="padding:1em"> <tr> <td width="60%"> <b>To</b> <address> <b><?php echo e($data['po_supplier']->name); ?></b> <br> <b>email: </b><?php echo e($data['po_supplier']->email); ?><br /> <b>address: </b><?php echo e($data['po_supplier']->address); ?>,<br /> <b>Code: </b><?php echo e($data['po_supplier']->code); ?><br /> <b>phone: </b><?php echo e($data['po_supplier']->phone); ?><br /> </address> </td> <td> <strong>From </strong> <address> <strong> <?php echo e($data['po_details']->organisation->name); ?></strong><br /> <b>email: </b><?php echo e($data['po_details']->organisation->email); ?><br /> <b>address: </b><?= wordwrap($data['po_details']->organisation->address, 40, "<br>\n") ?> </address> </td> </tr> </table> </div> </div> </div> <span><b>Items Ordered</b></span> <div class="row" style="margin-top:0.5em;"> <div class="col-xs-12"> <p class="lead"></p> <div class="table-responsive"> <table class="table"> <?php $gst_label = ($data['po_details']->organisation->state_id == $data['po_details']->supplier->state_id) ? 'SGST + CGST' : 'IGST'; ?> <tr> <th>SL NO.</th> <th>Model</th> <th>HSN Code</th> <th>Quantity</th> <th>Unit Price</th> <th>Per</th> <th><?php echo e($gst_label); ?></th> <th>Amount</th> </tr> <?php $grand_total = 0; $sln = 1; $gst_total = 0; $base_total = 0; $cgst_total = 0; $sgst_total = 0; $igst_total = 0; ?> <?php $__currentLoopData = $data['po_items']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $rounded_price = round($item->price, 2); $rounded_quantity = round($item->quantity, 2); $base_price = round($rounded_price * $rounded_quantity, 2); $gst = ($data['po_details']->organisation->state_id == $data['po_details']->supplier->state_id) ? round(($item->item->sgst_rate + $item->item->cgst_rate), 2) : round($item->item->igst_rate, 2); $gst_amount = $base_price * $gst / 100; $gst_total = $gst_total + $gst_amount; $tcs_amt = round((($base_price * $item->item->tcs_rate) / 100), 2); $total = round(($base_price + $tcs_amt), 2); $total_amount = (float) $base_price + $gst_amount; $base_total = $base_total + $base_price; $grand_total = $grand_total + $total; if($data['po_details']->organisation->state_id == $data['po_details']->supplier->state_id) { $cgst_amount = (($base_price * $item->item->cgst_rate) / 100); $cgst_total = round($cgst_total + $cgst_amount, 2); $sgst_amount = (($base_price * $item->item->sgst_rate) / 100); $sgst_total = round($sgst_total + $sgst_amount, 2); }else{ $igst_amount = round((($base_price * $item->item->igst_rate) / 100), 2); $igst_total = round($igst_total + $igst_amount, 2); } ?> <tr> <td><?php echo e($sln); ?></td> <td> <?php echo wordwrap($item->item->name, 25, "<br>\n"); ?> <br> <?php echo wordwrap($item->item->description, 25, "<br>\n"); ?> </td> <td><?php echo e($item->item->hsn_code); ?></td> <td><?php echo e($rounded_quantity); ?></td> <td>Rs. <?php echo e($rounded_price); ?></td> <td><?php echo e($item->unit); ?></td> <td>Rs. <?php echo e(round($gst_amount, 2)); ?></td> <td>Rs. <?php echo e($base_price); ?></td> </tr> <?php $sln = $sln + 1; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php $grant_total = round(($base_total + $gst_total), 2); $base_price_total = number_format($base_total, 2); ?> <tr> <td colspan="7">Sub Total</td> <td>Rs. <?php echo e($base_price_total); ?></td> </tr> <?php if($cgst_total): ?> <tr> <td colspan="7" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <b>CGST</b> </td> <td style="font-size:0.8em; line-height: 15px; padding: 4px;">Rs. <?php echo e(($cgst_total)); ?></td> </tr> <?php endif; ?> <?php if($sgst_total): ?> <tr> <td colspan="7" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <b>SGST</b> </td> <td style="font-size:0.8em; line-height: 15px; padding: 4px;">Rs. <?php echo e(($sgst_total)); ?></td> </tr> <?php endif; ?> <?php if($igst_total): ?> <tr> <td colspan="7" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <b>IGST</b> </td> <td style="font-size:0.8em; line-height: 15px; padding: 4px;">Rs. <?php echo e(number_format($igst_total, 2)); ?></td> </tr> <?php endif; ?> <tr> <td colspan="7" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <b>Grand Total</b> </td> <td style="font-size:0.8em; line-height: 15px; padding: 4px;">Rs. <?php echo e(number_format($grant_total, 2)); ?></td> </tr> <tr> <td colspan="8"> <?php $amount_words=getIndianCurrency($grant_total); ?> Amount Chargeable (in words) : <b style="text-transform: capitalize;"><?php echo e($amount_words); ?></b>. </td> </tr> </table> </div> <div> <?php if($data['po_details']->po_description): ?> <p>Note : <?php echo e($data['po_details']->po_description); ?></p> <?php endif; ?> </div> </div> </div> <div class="row" style="margin-top:2em;"> <div class="col-xs-12"> <p><b>Thanking You,</b></p> <b><?php echo e($data['po_details']->organisation->name); ?></b> </div> </div> </section> </div> </body> </html> <?php function getIndianCurrency($number) { $no = floor($number); $point = round(($number - $no) * 100); $hundred = null; $digits_1 = strlen($no); $i = 0; $str = array(); $words = array( '0' => '', '1' => 'one', '2' => 'two', '3' => 'three', '4' => 'four', '5' => 'five', '6' => 'six', '7' => 'seven', '8' => 'eight', '9' => 'nine', '10' => 'ten', '11' => 'eleven', '12' => 'twelve', '13' => 'thirteen', '14' => 'fourteen', '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen', '18' => 'eighteen', '19' => 'nineteen', '20' => 'twenty', '30' => 'thirty', '40' => 'forty', '50' => 'fifty', '60' => 'sixty', '70' => 'seventy', '80' => 'eighty', '90' => 'ninety' ); $digits = array('', 'hundred', 'thousand', 'lakh', 'crore'); while ($i < $digits_1) { $divider = ($i == 2) ? 10 : 100; $number = floor($no % $divider); $no = floor($no / $divider); $i += ($divider == 10) ? 1 : 2; if ($number) { $plural = (($counter = count($str)) && $number > 9) ? 's' : null; $str[] = ($number < 21) ? $words[$number] . " " . $digits[$counter] . $plural . " " . $hundred : $words[floor($number / 10) * 10] . " " . $words[$number % 10] . " " . $digits[$counter] . $plural . " " . $hundred; } else $str[] = null; } $str = array_reverse($str); $result = implode('', $str); $points = ''; if ($point > 0) { if ($point < 20) { $points = "and " . $words[$point] . " Paise"; } else { $points = "and " . $words[floor($point / 10) * 10] . " " . $words[$point % 10] . " Paise"; } } return $result . ' Rupees ' . $points; } function convertToWords($number, $words, $digits) { $str = []; $i = 0; while ($number > 0) { $divider = ($i == 2) ? 10 : 100; $num = floor($number % $divider); $number = floor($number / $divider); $i += ($divider == 10) ? 1 : 2; if ($num) { $plural = (($counter = count($str)) && $num > 9) ? 's' : ''; $str[] = ($num < 21) ? $words[$num] . " " . $digits[$counter] . $plural : $words[floor($num / 10) * 10] . " " . $words[$num % 10] . " " . $digits[$counter] . $plural; } } return implode(' ', array_reverse($str)); } ?><?php /**PATH /home/forge/app.gftag.com/resources/views/purchaseorder/print.blade.php ENDPATH**/ ?>