One Hat Cyber Team
Your IP :
3.144.134.101
Server IP :
104.21.32.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
/
Edit File:
b5f0ec70464e32a4f06a1ab557c073a7.php
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Invoice</title> <meta content="widtd=device-widtd, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <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"> .table-responsive { border: 2px solid #333; } table { margin-bottom: 2.5px !important; } .particulars tr { width: 100%; } .particulars tr td { border: 1px solid #333; margin: 0; padding: 0; font-size: 13px; } .address_top { display: flex; justify-content: space-between; } .text-center { text-align: center; } </style> </head> <body> <div class="wrapper"> <section class="invoice"> <div class="row"> <div class="col-xs-12"> <table class="table table-responsive particulars" width="100%"> <tr> <td width="60%"> <?php if(isset($sale->organisation->logo)): ?> <img src="<?php echo e(public_path($sale->organisation->logo)); ?>" width="100" /><br> <?php endif; ?> <p style="font-size:0.9em; font-weight: bold;">Billed From : <?php echo e($sale->organisation->name); ?></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;">Address : <?php echo e($sale->organisation->address); ?></p> <p style="font-size:0.8em; line-height: 15px; margin-bottom: 3px;">GST - <?php echo e($sale->organisation->gst_no); ?></p> <p style="font-size:0.8em; line-height: 15px; margin-bottom: 3px;">Phone - <?php echo e($sale->organisation->phone); ?></p> </td> <td width="40%"> <p style="font-size:1.5em; font-weight: bold;" class="text-center"><?php echo e(!$sale->exclude_gst ? 'TAX INVOICE' : 'CHALLAN'); ?></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;font-weight: bold;">Invoice No : <?php echo e($sale->invoice_number); ?></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;font-weight: bold;">FPO Invoice : <?php echo e($sale->fpo_invoice_number); ?></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;font-weight: bold;">Invoice Date : <?php echo e($sale->sale_date); ?></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;font-weight: bold;">Sale Date : <?php echo e($sale->sale_date); ?></p> </td> </tr> </table> <table class="table table-responsive particulars" width="100%"> <tr> <td width="33%" style="border: 0;"> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;"><b>Dispatch From : </b> <br><br></p> <?php if(!$sale->despatched_from): ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px; white-space:pre-wrap;"><?php echo e($sale->organisation->name); ?> </p> <?php endif; ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px; white-space:pre-wrap;"><?php echo e($sale->despatched_from ? $sale->despatched_from : $sale->organisation->address); ?> </p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px; white-space:pre-wrap;"><b>GST : </b><?php echo e($sale->organisation->gst_no); ?> </p> </td> <td width="33%" style="border: 0;"> <?php if($sale->is_cash_sale): ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;"><b>Billed To Party : </b> <br><br> <?php echo e(ucfirst($sale->cashSale->name)); ?></p> <?php if($sale->cashSale->gst_number): ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;"><b>GST : <?php echo e(strtoupper($sale->cashSale->gst_number)); ?></p> <?php endif; ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px; white-space:pre-wrap;"><?php echo e($sale->cashSale->billing_address); ?> </p> <?php else: ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;"><b>Billed To Party : </b> <br><br> <?php echo e(ucfirst($sale->customer->name)); ?></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;"><?php echo e($sale->customer->address); ?> </p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;">Pin no : <?php echo e($sale->customer->pin_code); ?> </p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;">GST : <?php echo e($sale->customer->gst); ?> </p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;">Email : <?php echo e($sale->customer->email); ?> </p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;">Phone : <?php echo e($sale->customer->phone); ?> </p> <?php endif; ?> </td> <td width="33%" style="border: 0;"> <?php if($sale->is_cash_sale): ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;"><b>Shipped To Party : </b> <br><br></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px; white-space:pre-wrap;"><?php echo e($sale->cashSale->shipping_address); ?> </p> <?php else: ?> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px;"><b>Shipped To Party : </b> <br><br></p> <p style="font-size:0.9em; line-height: 15px; margin-bottom: 3px; white-space:pre-wrap;"><?php echo e($sale->shipping_address ? $sale->shipping_address : $sale->customer->shipping_address); ?> </p> <?php endif; ?> </td> </tr> </table> <table class="table table-responsive particulars" width="100%"> <?php $gst_label = ($sale->organisation->state_id == $sale->customer->state_id) ? 'SGST + CGST' : 'IGST'; ?> <tr class="text"> <td style="width:10px; font-size:0.9em; line-height: 15px;">SL No</td> <td style="width:160px; font-size:0.9em; line-height: 15px;">Description of Goods</td> <td style="width:20px; font-size:0.9em; line-height: 15px;">HSN/SAC</td> <td style="width:25px; font-size:0.9em; line-height: 15px;">Unit Price</td> <td style="width:20px; font-size:0.9em; line-height: 15px;">Quantity</td> <?php if(!$sale->exclude_gst): ?> <td style="width:35px; font-size:0.9em; line-height: 15px;"><?php echo e($gst_label); ?></td> <?php endif; ?> <td style="width:15px; font-size:0.9em; line-height: 15px;">Per</td> <td style="width:25px; font-size:0.9em; line-height: 15px;">Amount</td> </tr> <?php $grant_total = 0; $base_total = 0; $gst_total = 0; $total_discount = 0; $line_total = 0; $cgst_total = 0; $sgst_total = 0; $igst_total = 0; ?> <?php $__currentLoopData = $sale->saleItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $sln = $key + 1; $qty = $value->quantity; $base_price = $qty * $value->price; $line_total = $line_total + $base_price; $gst = (($sale->organisation->state_id == $sale->customer->state_id) || ($sale->customer->id == '1')) ? ($value->item->sgst_rate + $value->item->cgst_rate) : $value->item->igst_rate; $line_discount = (float) ($base_price * $sale->discount) / 100; $total_discount = $total_discount + $line_discount; $price_after_discount = $base_price - $line_discount; $gst_amount = round(($price_after_discount * $gst) / 100, 2); $gst_total = $gst_total + $gst_amount; $base_total = $base_total + $price_after_discount; $grant_total = round($grant_total + $base_price, 2); if(($sale->organisation->state_id == $sale->customer->state_id) || ($sale->customer->id == '1')) { $cgst_amount = round(($price_after_discount * $value->item->cgst_rate) / 100, 2); $cgst_total = $cgst_total + $cgst_amount; $sgst_amount = round(($price_after_discount * $value->item->sgst_rate) / 100, 2); $sgst_total = $sgst_total + $sgst_amount; }else{ $igst_amount = round(($price_after_discount * $value->item->igst_rate) / 100, 2); $igst_total = $igst_total + $igst_amount; } ?> <tr> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"><?php echo e($sln); ?></td> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"> <?php echo e($value->item->name); ?> <?php echo e($value->item->pack_of); ?> <br> <?php echo e($value->item->description); ?> </td> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"><?php echo e($value->item->hsn_code); ?></td> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"><?php echo e($value->price); ?></td> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"><?php echo e($qty.' '.(isset($value['unit']) ? strtoupper($value['unit']) : 'PCS')); ?> </td> <?php if(!$sale->exclude_gst): ?> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"><?php echo e($gst_amount); ?> (<?php echo e($gst); ?>%)</td> <?php endif; ?> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"><?php echo e(isset($value['unit']) ? strtoupper($value['unit']) : 'PCS'); ?></td> <td cellspacing="0" style="font-size:0.7em; line-height: 13px; padding: 4px;"><?php echo e(number_format($base_price, 2)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 7 : 6); ?>" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <b>Total</b> </td> <td style="font-size:0.8em; line-height: 15px; padding: 4px;"><?php echo e(number_format($line_total, 2)); ?></td> </tr> <?php if($sale->discount > 0): ?> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 7 : 6); ?>" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <b>Discount</b> </td> <td style="font-size:0.8em; line-height: 15px; padding: 4px;"><?php echo e(number_format($total_discount, 2)); ?></td> </tr> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 7 : 6); ?>" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <b>Total after discount</b> </td> <td style="font-size:0.8em; line-height: 15px; padding: 4px;"><?php echo e(number_format($base_total, 2)); ?></td> </tr> <?php endif; ?> <?php $grant_total = (float) ($base_total) + (float) $gst_total; ?> <?php if($cgst_total): ?> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 7 : 6); ?>" 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;"><?php echo e(number_format($cgst_total, 2)); ?></td> </tr> <?php endif; ?> <?php if($sgst_total): ?> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 7 : 6); ?>" 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;"><?php echo e(number_format($sgst_total, 2)); ?></td> </tr> <?php endif; ?> <?php if($igst_total): ?> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 7 : 6); ?>" 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;"><?php echo e(number_format($igst_total, 2)); ?></td> </tr> <?php endif; ?> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 7 : 6); ?>" 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;"><?php echo e(number_format($grant_total, 2)); ?></td> </tr> <tr> <td colspan="<?php echo e(!$sale->exclude_gst ? 8 : 7); ?>" style="font-size:0.9em; line-height: 15px; padding: 4px;"> <?php $amount_words=getIndianCurrency(round($grant_total, 2)); ?> Amount Chargeable (in words) : <span style="text-transform: capitalize;"><b><?php echo e($amount_words); ?></b></span>. </td> </tr> <tr> <td colspan="3" style="text-align:left;"> <br><br> <p style="font-size:0.8em; line-height: 15px; margin-bottom: 3px;"><b>Narration :</b> <br><?php echo e($sale->comments); ?></p> <?php if($sale->organisation->bank_details): ?> <p style="font-size:0.8em; line-height: 15px; margin-bottom: 3px; white-space:pre-wrap;"><b>Bank Details :</b> <br><?php echo e($sale->organisation->bank_details); ?></p> <?php endif; ?> </td> <td colspan="<?php echo e(!$sale->exclude_gst ? 5 : 4); ?>" class="text-center"> <p> for <?php echo e(strtoupper($sale->organisation->name)); ?> <p> <span style="font-size:0.8em;">Authorized Signatory</span><br> <?php if($sale->organisation->signature): ?> <img src="<?php echo e(public_path($sale->organisation->signature)); ?>" width="200" /><br> <?php endif; ?> <b style="font-size:0.8em; text-align:center;">E. & O.E</b> </td> </tr> <tr> <td class="text-center" colspan="<?php echo e(!$sale->exclude_gst ? 8 : 7); ?>" style="font-size:0.9em; line-height: 10px;"> This is an electronic generated invoice.</td> </tr> </table> </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/sale/invoice.blade.php ENDPATH**/ ?>
Simpan