Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /proc/thread-self/root/home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/pdf/sell/ |
Upload File : |
<!DOCTYPE html> <html lang="en"> <head> <title>Sell Invoice</title> <meta charset="UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="csrf-token" content="{{ csrf_token() }}" /> <link rel="canonical" href="https://www.wrappixel.com/templates/xtremeadmin/" /> <!-- Favicon icon --> <link rel="icon" type="image/png" sizes="16x16" href="{{url('public/images/maktel_favicon.png')}}"> <!-- Custom CSS --> <link href="{{url('public/css/dataTables.bootstrap4.css')}}" rel="stylesheet"> <link href="https://cdn.datatables.net/buttons/1.6.5/css/buttons.bootstrap4.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="{{url('public/css/responsive.dataTables.min.css')}}"> <link href="{{url('public/css/chartist.min.css')}}" rel="stylesheet"> <link href="{{url('public/css/c3.min.css')}}" rel="stylesheet"> <!-- Custom CSS --> <link href="{{url('public/css/style.min.css')}}" rel="stylesheet"> <script src="{{url('public/backend/js/jquery.min.js')}}"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.4/jspdf.min.js"></script> <style type="text/css"> html,body { height: 100%; } table { width: 100%; border-collapse: collapse; border-spacing: 0; margin-bottom: 20px; font-size: 15px; } #checktableh td,th{ text-align:center; } table td,th { border: 1px solid #151414; } </style> </head> <body style=""> <div class="btn-group btn-group-sm" role="group" aria-label="Basic example"> <a href="#" onclick="print2pdf('Original');" class="btn btn-warning rounded-0"><i class="fa fa-print"></i> Print(Original) </a> <a href="#" target="" onclick="print2pdf('Duplicate');" class="btn btn-warning rounded-0"><i class="fa fa-print"></i> Print(Duplicate) </a> <a href="#" target="" onclick="print2pdf('Triplicate');" class="btn btn-warning rounded-0"><i class="fa fa-print"></i> Print(Triplicate) </a> </div> <div style="text-align: center;"> <h2>INVOICE</h2> </div> <div id="content" style="margin:0px;"> <div style="position:relative;min-height: 99%;margin-bottom:20px;"> <table border="0" style="margin-bottom: 0px" > <tr> <td width="20%" rowspan="4" style="border-right: #fff;"> <div class="logo-icon" style="height: 120px;" > <img style="width:100%;top:30px;" src="{{$companyInfo ? $companyInfo->company_logo ? url('public/images/company/'.$companyInfo->company_logo): url('/public/images/text_logo.png') : url('/public/images/text_logo.png')}}" alt="homepage" class="dark-logo"> </div> </td> <td width="30%" rowspan="4" style="position: relative;border-left: #fff;"> <div class="logo-icon" style="padding-left:10px;line-height: 18px;font-size: 14px;text-align: left;top:5px;position:absolute;"> <h2 style=" margin: 0;" class="name">{{$companyInfo ? $companyInfo->company_name: "MAKTEL LIMITED"}}</h2> <div>{{$companyInfo ? $companyInfo->company_address : "House-277(Level-4),Lane-4,Baridhara DOHS,Dhaka-1206."}}</div> <div>Hotline:+{{$companyInfo ? $companyInfo->company_phone: "88 01844241530"}}</div> <div>Email:{{$companyInfo ? $companyInfo->company_email : "info@maktel.com.bd"}}</div> <div>Web:{{$companyInfo ? $companyInfo->company_website : "www.maktel.com.bd"}}</div> <!-- <h2 class="name">Maktel</h2> <div>address</div> <div>Hotline:+88 01844241530</div> <div>Email:info@maktel.com.bd</div> <div>Web:www.maktel.com.bd</div> --> </div> </td> <td> <b>Invoice No: </b><div>INV-{{$requisition->invoice_number}}</div> </td> <td><strong>Date: </strong>{{$requisition->invoice_date->format('d-m-Y')}}</td> </tr> <tr> <td> </td> <td> <b style="font-size: 14px;">Mode/Terms Of Payment :</b> <div> @php if($requisition->payment_mode == 1){ $mode='Cash On Delivery'; }elseif($requisition->payment_mode == 2){ $mode='Bank'; }else{ $mode='--'; } @endphp {{$mode}} </div> </td> </tr> <tr> <td> <b> Supplier's Ref. :</b> <div> {{$requisition->Requsition_code}} </div> </td> <td> <b>Other References :</b> <div> {{$requisition->other_reference}} </div> </td> </tr> <tr> <td> <b>Buyer's Order No. :</b> <div> {{$requisition->buyer_order_no}} </div> </td> <td> <b>Date: </b> {{$requisition->buyer_order_date->format('d-m-Y')}}</td> </tr> </table> <table border="0" style="margin-bottom: 0px"> <tr> <td width="50%" style="border-top: #fff;position: relative;"> <div style="top:0"> <b>Buyer Details:</b> <div> {{$requisition->customer->customer_name}} </div> <div> {{$requisition->customer->customer_address}} </div> <!-- <div> {{$requisition->customer->customer_phone}} </div> --> <div> +{{$requisition->customer->customer_mobile}} </div> <div> {{$requisition->customer->customer_email}} </div> </div> </td> <td style="position: relative;border-top: #fff;" width="50%"> <div style="position:absolute;top:0"> <b>Terms of Delivery : </b> {!! $requisition->terms_delivery !!} </div> </td> </tr> </table> <table border="0" style="margin-bottom: 0px;" id="checktableh"> <tr class="bg-secondary text-white"> <th>SL</th> <th>Brand</th> <th>Product Name</th> <th>Model</th> <th>Color</th> <th>Quantity</th> <th>Rate(Taka)</th> <th>Amount(Taka)</th> </tr> @php $total=0.00;$i=1; @endphp @foreach($requisition->details->sortBy(function ($product, $key) { return $product['product_id'].$product['color_id']; }) as $key => $sell_product) <tr> <td width="3%">{{$i}}</td> <td> {{$sell_product->product->brand->brand_name}} </td> <td> {{$sell_product->product->product_name}} </td> <td> {{$sell_product->product->model->model_name}} </td> <td> {{$sell_product->color->color_name}} </td> <td> {{$sell_product->product_quantity}} </td> <td> {{number_format($sell_product->product_unit_price,2)}}</td> <td> @php $i++; $amount= $sell_product->product_quantity *$sell_product->product_unit_price; $total = $total + $amount; @endphp {{number_format($amount,2)}}</td> </tr> @endforeach <tr style="background: #eee;"> <td colspan="5" style="text-align: center;!important;padding-right: 10px"><strong>Total</strong></td> <td><b>{{$requisition->details->sum('product_quantity')}}</b></td> <td></td> <td><b>{{number_format($total,2)}} </b></td> </tr> <tr style="background: #eee;"> <td colspan="8" style="text-align: left!important;padding-right: 10px"><strong>In Words: </strong> Taka {{get_bd_amount_in_text($total)}}</td> </tr> <tr> <td id="setheight" colspan="8" style="padding-right: 10px;border-bottom: #fff;position: relative;"> <div style="position:absolute;top:0;text-align: right!important; width: 99%;"> <div> E. & O.E </div> </div> </td> </tr> </table> <div> <table style="bottom: 0px;margin:0px;"> <tbody> <tr> <td width="50%" style="font-size:15px;border:1px solid #fff;border-bottom:1px solid #151414;border-left:1px solid #151414!important;"> <div><b><u>Declaration</u></b></div> <div><strong>We declare that this invoice shows the actual price of the goods description and that all particulars are true and correct.</strong></div> </td> <td width="50%" style="padding:0px;border:1px solid #151414;"> <div style="border-left:1px solid #151414!important;"> <div style="text-align: right;font-size: 16px;padding-right: 15px"> <span>for</span> <b>Maktel Limited</b> </div> <div style="padding-right:15px;padding-top:40px;font-size:11px;text-align:right;font-weight: 900;"><b>Authorised Signatory</b></div> <div style="padding-right:15px;padding-top:10px;font-size:11px;font-weight: 900;text-align:right;padding-bottom: 10px;"><b>Accounts & Finance</b></div> </div> </td> </tr> </tbody> </table> </div> </div> <div style="font-size:10px;font-weight:bold;text-align:center">This is a Computer Generated Invoice</div> </div> <!-- Bootstrap tether Core JavaScript --> <script type="text/javascript"> $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); </script> <script src="{{url('public/backend/js/popper.min.js')}}"></script> <script src="{{url('public/backend/js/bootstrap.min.js')}}"></script> <!-- apps --> <script src="{{url('public/backend/js/app.min.js')}}"></script> <script src="{{url('public/backend/js/app.init.js')}}"></script> <script src="{{url('public/backend/js/app-style-switcher.js')}}"></script> <!-- slimscrollbar scrollbar JavaScript --> <script src="{{url('public/backend/js/perfect-scrollbar.jquery.min.js')}}"></script> <script src="{{url('public/backend/js/sparkline.js')}}"></script> <!--Wave Effects --> <script src="{{url('public/backend/js/waves.js')}}"></script> <!--Menu sidebar --> <script src="{{url('public/backend/js/sidebarmenu.js')}}"></script> <!--Custom JavaScript --> <script src="{{url('public/backend/js/feather.min.js')}}"></script> <script src="{{url('public/backend/js/custom.min.js')}}"></script> <script src="https://raw.githack.com/eKoopmans/html2pdf/master/dist/html2pdf.bundle.js"></script> <script type="text/javascript" src="https://printjs-4de6.kxcdn.com/print.min.js"></script> <link rel="stylesheet" type="text/css" href="https://printjs-4de6.kxcdn.com/print.min.css"> <script type="text/javascript"> console.log($("#checktableh").height()); if($("#checktableh").height() < 550){ $("#setheight").css('height',550-$("#checktableh").height()); } function print2pdf(text){ printJS({ printable: 'content', type: 'html',style: 'table{width: 100%;border-collapse: collapse;border-spacing: 0;margin-bottom: 20px;ont-size: 14px;} #checktableh td,th{text-align:center;} table td,th{border: 1px solid #151414; }' ,honorMarginPadding :false,targetStyles:'padding-top:50px,margin:0;',header: '<div style="position:relative;text-align:center;margin:0px;padding:0px;"><h2 style="margin:0px;padding:0px;">INVOICE</h2><span style="position:absolute;font-weight:bold;font-style:italic;right:15px;top:10px;">('+text+')</span>'}); } function printpdf(){ var opt = { margin: 0, filename: 'myfile.pdf', image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; var element = document.getElementById('content'); html2pdf().set(opt).from(element).output(); //html2pdf(element,opt); } </script> </body> </html>