/
home
/
sjslayjy
/
public_html
/
scm
/
resources
/
views
/
dashboard
/
shortClosedPO
/
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. – {{$stc_po->short_close_no}} against {{getPRIdByPONumber($po->id)}} and request you to Approve the Short Close 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. – {{$stc_po->short_close_no}} and request you to Approve the Purchase Order Short Close 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/scm.png') }}" alt="logo" height="50px"/> <p style="text-align:center;font-weight:bolder;margin-top:-22px; font-size: 22px; line-height: 22px;"><b> AERIAL TELECOM SOLUTIONS 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> Purchase Order Short Close Request </b></p> </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 $desc_width = 20; $spec_width = 20; @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="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 $desc_width = 20; $spec_width = 20; @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="6%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->stc_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->stc_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;">{{$item->stc_qty*$item->rate*$item->gst/100}}</td> <td width="8%" style="border-top:1px solid; text-align:center; height:30px; padding-left: 14px;"><b>{{$item->rate*$item->stc_qty+$item->stc_qty*$item->rate*$item->gst/100}}</b></td> </tr> @endforeach <tr> <td colspan="9" 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>{{$total_amount}}</b></td> </tr> </table> </td> </tr> </table> @if ($is_mail == true) <p>Please Login to SCM Portal or Click on the below link to approve PO </p><a href="https://scm.sjslalganj.com/user/all-short-close">Click Here For Login!!</a><br> <p>This is a System generated Mail <br> Thanks</p> @endif <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;"><img class="center" src="{{ url('assets/images/scm.png') }}" height="800px" width="600px"/></div>'); }); if('{{$stc_po->approval_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>