/
home
/
sjslayjy
/
public_html
/
scm
/
resources
/
views
/
dashboard
/
pr
/
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:12px; } @media all { .page-break { display: none; } } @media print { .page-break { display: block; page-break-before: always; } } body{ font-family: 'Droid Sans', sans-serif; } </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 == '2') <h5>Dear {{$fh}}</h5> <p>{{$purchase_request->preparer}} </p> <p> has requested you to review and approve PR No. – {{$purchase_request->pr_number}} </p> @endif @if ($role_id == '3') <h5>Dear {{$bh}}</h5> <h5>{{$fh}}</h5> <p>{{$purchase_request->preparer}} </p> <p> has requested and reviewed PR No. {{$purchase_request->pr_number}} and request you to Approve the Purchase Request </p> @endif @if ($role_id == '4') <h5>Dear {{$d}}</h5> <p>{{$purchase_request->preparer}} </p> <h5>{{$fh}}</h5> <h5>{{$bh}}</h5> <p> has requested , Reviewed and Approved PR No. – {{$purchase_request->pr_number}} and request you to Approve the Purchase Request </p> @endif @endif <table width="96%" style="border:1px solid;" cellspacing="0" cellpadding="0"> <tr> <td style="height: 38px;border-bottom:1px solid;" valign="top"> <p style="text-align:center;font-weight:bolder;margin-top: 15px; font-size: 15px;"><b>Purchase Requisition</b></p> </td> </tr> <tr> <td style="height: 38px;border-bottom:1px solid;" valign="top"> <table style="width: 100%"> <tr> <td colspan="6" style="height: 38px;border-bottom:1px solid;"><strong style="font-size: 14px;margin-left: 5px;">Transaction Details</strong></td> </tr> <tr> <td width="50" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>PR Number : </strong> </p> </td> <td width="20%" style="height:38px;"><p style="padding: 5px;">{{$purchase_request->pr_number}}</p></td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>PR Date :</</strong> </p> </td> <td width="20%" style="height:38px; "> <p style="padding: 5px;">{{date('Y-m-d', strtotime($purchase_request->pr_date))}}</p> </td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Preparer :</</strong> </p> </td> <td width="20%" style="height:38px;"> <p style="padding: 5px;">{{$purchase_request->preparer}}</p> </td> </tr> <tr> <td width="50" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Description : </</strong> </p> </td> <td width="20%" style="height:38px;"><p style="padding: 5px;">{{$purchase_request->description}}</p></td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Status :</</strong> </p> </td> <td width="20%" style="height:38px; "> <p style="padding: 5px;">{{$purchase_request->status}}</p> </td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Department : </strong> </p> </td> <td width="20%" style="height:38px;"> <p style="padding: 5px;">{{$purchase_request->department_name}}</p> </td> </tr> <tr> <td width="50" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Amendment Number: </</strong> </p> </td> <td width="20%" style="height:38px;"><p style="padding: 5px;">{{$purchase_request->amendment_number}}</p></td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Amendment Date:</</strong> </p> </td> <td width="20%" style="height:38px; "> <p style="padding: 5px;">{{$purchase_request->updated_at}}</p> </td> </tr> </table> </td> </tr> <br/><br/> <tr> <td colspan="6" style="height: 38px;border-top:1px solid;"><strong style="font-size: 14px;margin-left: 5px;">PR Item Details</strong></td> </tr> <tr> <td width="100%"> <table cellspacing="0" cellpadding="0" width="100%"> @foreach ($items as $i=>$item) @php if(strlen($item->description) < strlen($item->specification)){ $desc_width = 20; $spec_width = 20; } else { $desc_width = 24; $spec_width = 16; } @endphp @endforeach <tr> <td style="border-top:1px solid; border-right:1px solid; height:20px; text-align:center;" width="3%"> <b>S.N.</b> </td> <!-- <td width="24%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>Type</b> </td> --> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>Item Code</b> </td> <td width="{{$desc_width}}%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>Item Discription</b> </td> <td width="{{$spec_width}}%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>Specification</b> </td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>UoM</b> </td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>Qty</b> </td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>Unit Price</b> </td> <td width="9%" style="border-top:1px solid; text-align:center; height:20px;"> <b>Amount</b> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> <table cellspacing="0" cellpadding="0" width="100%"> @php $total=0; @endphp @foreach ($items as $i=>$item) @php if(strlen($item->description) < strlen($item->specification)){ $desc_width = 20; $spec_width = 20; } else { $desc_width = 24; $spec_width = 16; } @endphp <tr> <td style="border-top:1px solid; border-right:1px solid; height:30px; text-align:center;" width="3%">{{$i+1}} </td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->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="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{getTableById('units',$item->uom)->name}}</td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->qty}} </td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;">{{$item->rate}}</td> <td width="9%" style="border-top:1px solid; text-align:center; height:30px; padding-left: 12px;"><b>{{$item->rate*$item->qty}}</b></td> @php $stotal=$item->rate*$item->qty; $total=$total+$stotal; @endphp </tr> @endforeach <!-- <tr> <td colspan="8" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;"></td> <td style="border-top:1px solid; text-align:center; height:30px; padding-left: 12px;">7283.85</td> </tr> <tr> <td colspan="8" style=" border-right:1px solid; text-align:right; height:30px; padding-right: 5px;">CGST</td> <td style="border-top:1px solid; text-align:center; height:30px; padding-left: 12px;"><b>655.55</b></td> </tr> <tr> <td colspan="8" style=" border-right:1px solid; text-align:right; height:30px; padding-right: 5px;">SGST</td> <td style="border-top:1px solid; text-align:center; height:30px; padding-left: 12px;"><b>655.55</b></td> </tr> --> <tr> <td colspan="7" style="border-top:1px solid; border-bottom:1px solid; border-right:1px solid; text-align:right; height:30px; padding-right: 5px;">Total</td> <td style="border-top:1px solid; border-bottom:1px solid; text-align:center; height:30px; padding-left: 10px;"><i class="fa fa-rupee" style="float: left; font-size: 16px;"></i><b>{{$total}}</b></td> </tr> </table> </td> </tr> <tr> <td style="height: 38px;border-bottom:1px solid;" valign="top"> <table style="width: 100%"> <!-- <tr> <td colspan="6" style="height: 38px;border-bottom:1px solid;"><strong style="font-size: 14px;margin-left: 5px;">Transaction Details</strong></td> </tr> --> <tr> <td width="50" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Business Unit : </strong> </p> </td> <td width="20%" style="height:38px;"><p style="padding: 5px;">{{$purchase_request->business_unit_name}}</p></td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Requestor :</strong> </p> </td> <td width="20%" style="height:38px; "> <p style="padding: 5px;">{{$purchase_request->requested_by}}</p> </td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Delivery Location :</strong> </p> </td> <td width="20%" style="height:38px;"> <p style="padding: 5px;">{{$purchase_request->delivery_location}}</p> </td> </tr> <tr> <td width="50" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Customer : </strong> </p> </td> <td width="20%" style="height:38px;"><p style="padding: 5px;">{{$purchase_request->cust_name}}</p></td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Source :</strong> </p> </td> <td width="20%" style="height:38px; "> <p style="padding: 5px;">{{$purchase_request->source}}</p> </td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Supplier Contact :</strong> </p> </td> <td width="20%" style="height:38px;"> <p style="padding: 5px;">{{$purchase_request->supplier_contact}}</p> </td> </tr> <tr> <td width="50" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong> Project: </strong> </p> </td> <td width="20%" style="height:38px;"><p style="padding: 5px;">{{$purchase_request->project}}</p></td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Site:</strong> </p> </td> <td width="20%" style="height:38px; "> <p style="padding: 5px;">{{$purchase_request->site}}</p> </td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Total Amount:</strong> </p> </td> <td width="20%" style="height:38px;"> <p style="padding: 5px;">{{$total}}</p> </td> </tr> <tr> <td width="50" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong> Circle: </strong> </p> </td> <td width="20%" style="height:38px;"><p style="padding: 5px;">{{$purchase_request->circle_name}}</p></td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong>Supplier Name:</strong> </p> </td> <td width="20%" style="height:38px; "> <p style="padding: 5px;">{{$purchase_request->supplier_name}}</p> </td> <td width="30" style="height:38px; text-align: left;"> <p style="padding: 5px;"><strong></strong> </p> </td> <td width="20%" style="height:38px;"> <p style="padding: 5px;"></p> </td> </tr> </table> </td> </tr> </table> <!-- <p style="text-align: center;">This is a computer generated invoice</p> --> @if ($is_mail == true) <p>Please Login to SCM Portal or Click on the below link to review the PR </p><a href="https://scm.aerialtelecom.in/user/pr-view/{{$purchase_request->id}}">Click Here For Login!!</a><br> <p>This is a System generated Mail <br> Thanks</p> @endif </div> <script type="text/javascript"> $(function () { $(".content-box").each(function () { $(this).after('<div class="watermark" style="opacity: 0.2; position: absolute; top: 10%; left: 34%; display: flex; justify-content: center;"><img class="center" src="{{ url('assets/images/scm.png') }}" height="500px" width="400px"/></div>'); }); }); </script> </body> </html>