/
home
/
sjslayjy
/
public_html
/
tabson
/
resources
/
views
/
dashboard
/
po
/
Upload File
HOME
@section('style') <script src="https://use.fontawesome.com/e2d16502eb.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <style> #page-wrap { width: 285mm; height:210mm; margin: 0 auto; } td { font-size:14px; } #pageFooter { display: table-footer-group; } #pageFooter:after { counter-increment: page; content: counter(page); } @media all { .page-break { display: none; } } @media print { .page-break { display: block; page-break-before: always; } } @media print { .page-wrapid{ display: block; page-break-before: always; } } body{ font-family: calibri; } </style> <link href="https://fonts.googleapis.com/css?family=Droid+Sans" rel="stylesheet"> </head> <body> <div id="page-wrap" class="content-box pad25A" style="page-break-after: always;"> @if ($is_mail == true) @if ($role_id == '7') <h5>Dear {{$bh}}</h5> <p>Mr. {{$po_creater}} </p> <p>has generated PO No. – {{$po->po_number}} against {{getPRIdByPONumber($po->id)}} and request you to Approve the Purchase Order </p> @endif @if ($role_id == '4') <h5>Dear {{$d}}</h5> <p>{{$po_creater}} </p> <h5>{{$bh}}</h5> <p>has requested & Approved PO No. – {{$po->po_number}} and request you to Approve the Purchase Request </p> @endif @endif @if ($is_mail == false) <div class="text-center" style="padding-left: 500px;"> <button onclick="window.print();" class="btn btn-primary" id="print">Print</button> </div> @endif <br> <table width="95%" style="border:1px solid; color:black;" cellspacing="0" cellpadding="0"> <tr> <td style="height: 38px;border-bottom:1px solid;" valign="top"> <img src="{{asset('/assets/images/ats_logo/tabson-india.png')}}" alt="logo" height="50px"/> <p style="text-align:center;font-weight:bolder;margin-top:-22px; font-size: 22px; line-height: 22px;"><b> TABSONS INDIA INNOVATORS PVT. LTD.</b></p> </td> </tr> <tr> <td style="height: 38px;border-bottom:1px solid;" valign="top"> <p style="text-align:center;font-weight:bolder;margin-top: 15px; font-size: 17px;"><b> @if ($po->po_type==1)Purchase Order @endif @if ($po->po_type==2)Work Order @endif @if ($po->po_type=='')Purchase Order @endif </b></p> </td> </tr> </table> <table width="95%" style="border:1px solid; color:black;" cellspacing="0" cellpadding="0"> <tr> <!-- <td style="height: 30px;border-bottom:1px solid;" valign="top"> --> <td width="50%"> <table style="width: 100%"> <tr> <td width="40%" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Vendor Code : </strong> </p> </td> <td width="60%" style="height:30px; border-right:1px solid;"><p style="padding: 5px;">{{$po->vendor_code}}</p></td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Supplier Name :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$po->vendor_name}}</p> </td> </tr> <tr> <td width="50" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Supplier Address : </strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"><p style="padding: 5px;">{{$po->address}}</p></td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Status :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$po->status}}</p> </td> </tr> <tr> <!-- <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong></strong> </p> </td> <td width="20%" style="height:38px;border-right:1px solid;"> <p style="padding: 5px;"></p> </td> --> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Document Type :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$po->document_type}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Supplier GSTIN No :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$po->s_gst}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Bill To Address:</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> @if($po->c_name == "Uttrakhand" && $po->created_at > "2024-05-31") <p style="padding: 5px;">TABSONS INDIA INNOVATORS PVT. LTD.,<br> Annapurna Cold Store Compound, Village Fauji Matkota, PO. Bhurarani, Rudrapur,<br><br> Distt. Udham Singh Nagar, Uttarakhand, 263153</p> @elseif($po->c_name == "Uttrakhand") <p style="padding: 5px;">{{$po->Bill_to_address}}</p> @else <p style="padding: 5px;">{{$po->Bill_to_address}}</p> @endif </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Our GSTIN No:</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$po->c_gst}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Cirlce:</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$po->c_name}}</p> </td> </tr> </table> </td> <td width="50%"> <table width="100%"> <tr> <td width="40%" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>PO No :</strong> </p> </td> <td width="60%" style="height:30px; "> <p style="padding: 5px;">{{$po->po_number}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>PO Date:</strong> </p> </td> <td width="20%" style="height:30px;"> <p style="padding: 5px;">{{date('d-m-Y', strtotime($po->created_at))}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Amendment No :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{$po->amendment_number}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Amendment Date :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{date("d-m-Y", strtotime($po->updated_at))}}</p> </td> </tr> <tr></tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Reference No. :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{$po->reference_no}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Delivery Address :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{$po->delivery_address}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Buyer :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{$po->b_name}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Contact Number :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{$po->contact}}</p> </td> </tr> </table> </td> </tr> </table> <table width="95%" style="border:1px solid; color:black;" cellspacing="0" cellpadding="0"> <tr> <td colspan="6" style="height: 38px;border-top:1px solid;"><strong style="font-size: 14px;margin-left: 5px;">PO Item Details</strong></td> </tr> <tr> <td width="100%"> <table cellspacing="0" cellpadding="0" width="100%"> @foreach ($item_data as $i=>$item) @php if (strlen($item->description) < strlen($item->specification)) { $desc_width = 20; $spec_width = 20; } else { $desc_width = 28; $spec_width = 12; } @endphp @endforeach <tr> <td style="border-top:1px solid; border-right:1px solid; height:20px; text-align:center;" width="3%"> <strong>Id</strong> </td> <td width="8%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>Item Code</strong> </td> <td width="{{$desc_width ?? ''}}%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>Item Discription</strong> </td> <td width="{{$spec_width}}%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>Specification</strong> </td> <td width="8%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>Make</strong> </td> <td width="6%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>Quantity</strong> </td> <td width="4%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>UOM</strong> </td> <td width="4%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>Rate</strong> </td> <td width="6%" style="border-top:1px solid; border-right:1px solid;text-align: center; height:20px;"> <strong>Amount</strong> </td> <td width="6%" style="border-top:1px solid; border-right:1px solid;text-align:center; height:20px;"> <strong>GST Tax(%)</strong> </td> <td width="6%" style="border-top:1px solid; border-right:1px solid;text-align:center; height:20px;"> <strong>Tax Amount</strong> </td> <td width="8%" style="border-top:1px solid; border-right:1px solid;text-align:center; height:20px;"> <strong>Total Amount</strong> </td> </tr> @foreach ($item_data as $i=>$item) @php if (strlen($item->description) < strlen($item->specification)) { $desc_width = 20; $spec_width = 20; } else { $desc_width = 28; $spec_width = 12; } @endphp <tr> <td style="border-top:1px solid; border-right:1px solid; height:30px; text-align:center;" width="3%">{{$i+1}} </td> <td width="8%" style="border-top:1px solid; border-right:1px solid; text-align:left; height:30px; padding-left: 5px;">{{$item->code}}</td> <td width="{{$desc_width ?? ''}}%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->description}}</td> <td width="{{$spec_width}}%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->specification}}</td> <td width="8%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->make}}</td> <td width="6%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->qty}}</td> <td width="4%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{getTableById('units',$item->uom)->name}}</td> <td width="4%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->rate}}</td> <td width="6%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->rate*$item->qty}}</td> <td width="6%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->gst}} </td> <td width="6%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{ round($item->qty*$item->rate*$item->gst/100, 2) }}</td> <td width="8%" style="border-top:1px solid; text-align:center; height:30px; padding-left: 14px;"><b>{{ round($item->rate*$item->qty+$item->qty*$item->rate*$item->gst/100, 2) }}</b></td> </tr> @endforeach <tr> <td colspan="11" style="border-top:1px solid; border-right:1px solid; text-align:right; height:30px; padding-right: 5px;">Total</td> <td style="border-top:1px solid; text-align:center; height:30px; padding-left: 10px;"><i class="fa fa-rupee" style="float: left; font-size: 16px;"></i><b>{{ round($total_amount, 2)}}</b></td> </tr> </table> </td> </tr> <tr > <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong>Total Order Value : </strong>{{ round($total_amount, 2)}}</p> </td> </tr> <tr> <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong>Total Value (in Words) : </strong>{{$total_in_word}}</p> </td> </tr> <tr > <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong> Payment Term :</strong> {{$po->payment_terms}} </p> </td> </tr> <tr > <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong> Delivery Periods : </strong> @if(is_numeric($po->delivery_periods_id)) {{getTableById('delivery_periods', $po->delivery_periods_id)->name}} @else {{getModelById('PurchaseOrder', $po->id)->delivery_periods}} @endif </p> </td> </tr> <tr > <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong> Delivery Terms : </strong> {{$po->delivery_terms}} </p> </td> </tr> <tr > <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong>Warranty Terms :</strong> {{$po->warranty_terms}}</p> </td> </tr> <tr > <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong>Special Term & Cond. : </strong>{{$po->stc}}</p> </td> </tr> <tr > <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong>General Terms: </strong> As Per Annexure here wiith</p> </td> </tr> <tr> <td width="100%" style="height:38px; text-align: left; border-top:1px solid; "> <p style="padding: 5px;"><strong><u>Supplier Note </u></strong></p> <h4>Instruction for Invoice :</h4> For Service PO :Ensure that the invoice is submitted to TABSON within 5 working days of completion of service as per PO.<br> For Goods PO :Ensure that the invoice is accompanying the goods. The goods delivered against Challan will not be received. As per attached Annexure <h4>Acceptance Notification:</h4> Please return the duplicate copy of this Purchase Order duly signed and stamped in acceptance of all Terms & Conditions here and reverse If formal acceptance is not received within 3 days, it will be presumed that you have accepted the order. </td> </tr> <tr> <table width="95%" style="border:1px solid;" cellspacing="0" cellpadding="0"> <tr> <td style="height:38px; text-align: left; border-right:1px solid; width: 45%;"> <strong>Supplier's Acceptance: <br><br><br> <p>Note: <br>1. Please quote our PO Number on Invoice and future correspondence<br> 2. Please quote our item code on invoices</p></strong><br> </td> <td style="height:38px; text-align: center; border-right:1px solid; width:15% ;"><strong>Date : <br>{{date("d-m-Y", strtotime($po->created_at))}}</strong></td> <td style="height:38px; width:40% ;text-align: center;"> <strong>For TABSONS INDIA INNOVATORS PVT. LTD. <br> This is Electronic copy and does not require any signature <br><br><br><br><br> Authorized Signatory </strong> </td> </tr> </table> </tr> </table> @if ($is_mail == true) <p>Please Login to TABSON SCM Portal or Click on the below link to approve PO </p><a href="https://tabson.sjslalganj.com/user/po-view/{{$po->id}}">Click Here For Login!!</a><br> <p>This is a System generated Mail <br> Thanks</p> @endif <div id="pageFooter">Page </div> <script type="text/javascript"> $(function () { $(".content-box").each(function () { $(this).after('<div class="watermark" style="opacity: 0.2; position: absolute; top: 14%; left: 25%; display: flex; justify-content: center;margin-top:150px;"><img class="center" src="{{ url('/assets/images/ats_logo/tabson-india.png') }}" height="500px" width="600px"/></div>'); }); if('{{$po->status}}' == 'requested') { $(".content-box").each(function () { $(this).after('<div class="watermark" style="opacity: 0.2;position:absolute; top:50%; display:flex; left:15%;"><p style="font-size:350px;margin:0px; transform: rotate(-20deg);">DRAFT</p></div>'); }); } }); </script> </body> </html>