/
home
/
sjslayjy
/
public_html
/
tabson
/
resources
/
views
/
dashboard
/
production-order
/
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. {{$production_order_creater}} </p> <p>has generated Production Order No. – {{$production_order->prod_number}} against {{$production_order->bom_number}} and request you to Approve the Production Order </p> @endif @if ($role_id == '4') <h5>Dear {{$d}}</h5> <p>{{$production_order_creater}} </p> <h5>{{$bh}}</h5> <p>has requested & Approved Production Order No. – {{$production_order->prod_number}} and request you to Approve the Production 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(!empty($production_order) && is_object($production_order)) @if ($production_order->production_order_type == 1) Production Order @endif @if ($production_order->production_order_type == 2) Work Order @endif @if ($production_order->production_order_type === '') Production Order @endif @else <span style="color:red;">Production order data not available.</span> @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>Production Order No : </strong> </p> </td> <td width="60%" style="height:30px; border-right:1px solid;"><p style="padding: 5px;">{{$production_order->prod_number ?? 'N/A'}}</p></td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>BOM No :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$production_order->bom_number ?? 'N/A'}}</p> </td> </tr> <tr> <td width="50" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Production Order Date : </strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"><p style="padding: 5px;">{{ $production_order->prod_date ? \Carbon\Carbon::parse($production_order->prod_date)->format('Y-m-d') : 'N/A' }}</p></td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Business Unit :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$production_order->b_name ?? 'N/A'}}</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>Production Order Status :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{ ucwords($production_order->status ?? 'N/A') }}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Production Order Department :</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$production_order->d_name ?? 'N/A'}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Unit Name:</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$production_order->c_name ?? 'N/A'}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Project:</strong> </p> </td> <td width="20%" style="height:30px;border-right:1px solid;"> <p style="padding: 5px;">{{$production_order->project_name ?? 'N/A'}}</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>Description :</strong> </p> </td> <td width="60%" style="height:30px; "> <p style="padding: 5px;">{{$production_order->delivery_terms ?? 'N/A'}}</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;"> {{$production_order->amendment_number ?? 'N/A'}} </p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Amendment Date At :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{ $production_order->updated_at ? \Carbon\Carbon::parse($production_order->updated_at)->format('Y-m-d') : 'N/A' }}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Remark :</strong> </p> </td> <td width="20%" style="height:30px;"> <p style="padding: 5px;"> {{$production_order->remark ?? 'N/A'}} </p> </td> </tr> <tr></tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Project Start Date:</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{ $production_order->prod_start_date ? \Carbon\Carbon::parse($production_order->prod_start_date)->format('Y-m-d') : 'N/A' }}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Project Completion Date :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{ $production_order->completion_date ? \Carbon\Carbon::parse($production_order->completion_date)->format('Y-m-d') : 'N/A' }}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Required QTY :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{$production_order->required_qty ?? 'N/A'}}</p> </td> </tr> <tr> <td width="30" style="height:30px; text-align: left;"> <p style="padding: 5px;"><strong>Seupervisor Name :</strong> </p> </td> <td width="20%" style="height:30px; "> <p style="padding: 5px;">{{$production_order->supervisor_name ?? 'N/A'}}</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;">Production Order 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="20%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <strong>Item Discription</strong> </td> <td width="20%" 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="20%" 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> <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 Production Order 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> @if(!empty($production_order) && !empty($production_order->created_at)) {{ date("d-m-Y", strtotime($production_order->created_at)) }} @else N/A @endif </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 Production Order </p><a href="https://tabson.sjslalganj.com/user/production-order-view/{{$production_order->id}}">Click Here For Login!!</a><br> <p>This is a System generated Mail <br> Thanks</p> @endif <!-- <p style="text-align: center;">This is a computer generated invoice</p> --> <!-- </div> --> <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('{{$production_order->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);"></p></div>'); }); } }); </script> </body> </html>