/
home
/
sjslayjy
/
public_html
/
scm
/
storage
/
framework
/
views
/
Upload File
HOME
<?php $__env->startSection('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;"> <?php if($is_mail == true): ?> <?php if($role_id == '2'): ?> <h5>Dear <?php echo e($fh); ?></h5> <p><?php echo e($purchase_request->preparer); ?> </p> <p> has requested you to review and approve PR No. – <?php echo e($purchase_request->pr_number); ?> </p> <?php endif; ?> <?php if($role_id == '3'): ?> <h5>Dear <?php echo e($bh); ?></h5> <h5><?php echo e($fh); ?></h5> <p><?php echo e($purchase_request->preparer); ?> </p> <p> has requested and reviewed PR No. <?php echo e($purchase_request->pr_number); ?> and request you to Approve the Purchase Request </p> <?php endif; ?> <?php if($role_id == '4'): ?> <h5>Dear <?php echo e($d); ?></h5> <p><?php echo e($purchase_request->preparer); ?> </p> <h5><?php echo e($fh); ?></h5> <h5><?php echo e($bh); ?></h5> <p> has requested , Reviewed and Approved PR No. – <?php echo e($purchase_request->pr_number); ?> and request you to Approve the Purchase Request </p> <?php endif; ?> <?php 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;"><?php echo e($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;"><?php echo e(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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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%"> <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(strlen($item->description) < strlen($item->specification)){ $desc_width = 20; $spec_width = 20; } else { $desc_width = 24; $spec_width = 16; } ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <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="<?php echo e($desc_width); ?>%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:20px;"> <b>Item Discription</b> </td> <td width="<?php echo e($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; ?> <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(strlen($item->description) < strlen($item->specification)){ $desc_width = 20; $spec_width = 20; } else { $desc_width = 24; $spec_width = 16; } ?> <tr> <td style="border-top:1px solid; border-right:1px solid; height:30px; text-align:center;" width="3%"><?php echo e($i+1); ?> </td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;"><?php echo e($item->item_code); ?></td> <td width="<?php echo e($desc_width); ?>%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;"><?php echo e($item->description); ?></td> <td width="<?php echo e($spec_width); ?>%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;"><?php echo e($item->specification); ?></td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;"><?php echo e(getTableById('units',$item->uom)->name); ?></td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;"><?php echo e($item->qty); ?> </td> <td width="11%" style="border-top:1px solid; border-right:1px solid; text-align:center; height:30px;"><?php echo e($item->rate); ?></td> <td width="9%" style="border-top:1px solid; text-align:center; height:30px; padding-left: 12px;"><b><?php echo e($item->rate*$item->qty); ?></b></td> <?php $stotal=$item->rate*$item->qty; $total=$total+$stotal; ?> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- <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><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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;"><?php echo e($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> --> <?php 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/<?php echo e($purchase_request->id); ?>">Click Here For Login!!</a><br> <p>This is a System generated Mail <br> Thanks</p> <?php 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="<?php echo e(url('assets/images/scm.png')); ?>" height="500px" width="400px"/></div>'); }); }); </script> </body> </html> <?php /**PATH /home/sjslayjy/public_html/scm/resources/views/dashboard/pr/pr-mail.blade.php ENDPATH**/ ?>