⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
html
/
storage
/
framework
/
views
/
View File Name :
58a33a26d88227b78e23ca6f1dbd669c.php
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Proposal Detail')); ?> <?php $__env->stopSection(); ?> <?php $settings = Utility::settings(); ?> <?php $__env->startPush('script-page'); ?> <script> $(document).on('change', '.status_change', function () { var status = this.value; var url = $(this).data('url'); $.ajax({ url: url + '?status=' + status, type: 'GET', cache: false, success: function (data) { }, }); }); $('.cp_link').on('click', function () { var value = $(this).attr('data-link'); var $temp = $("<input>"); $("body").append($temp); $temp.val(value).select(); document.execCommand("copy"); $temp.remove(); show_toastr('success', '<?php echo e(__('Link Copy on Clipboard')); ?>') }); </script> <?php $__env->stopPush(); ?> <?php $__env->startSection('breadcrumb'); ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Dashboard')); ?></a></li> <li class="breadcrumb-item"><a href="<?php echo e(route('proposal.index')); ?>"><?php echo e(__('Proposal')); ?></a></li> <li class="breadcrumb-item"><?php echo e(__('Proposal Details')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('send proposal')): ?> <?php if($proposal->status!=4): ?> <div class="row"> <div class="col-12"> <div class="card mb-3"> <div class="card-body"> <div class="row timeline-wrapper"> <div class="col-md-6 col-lg-4 col-xl-4 create_invoice"> <div class="timeline-icons"><span class="timeline-dots"></span> <i class="ti ti-plus text-primary"></i> </div> <h6 class="text-primary my-3"><?php echo e(__('Create Proposal')); ?></h6> <p class="text-muted text-sm mb-3"><i class="ti ti-clock mr-2"></i><?php echo e(__('Created on ')); ?><?php echo e(\Auth::user()->dateFormat($proposal->issue_date)); ?></p> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit proposal')): ?> <a href="<?php echo e(route('proposal.edit',\Crypt::encrypt($proposal->id))); ?>" class="btn btn-sm btn-primary" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Edit')); ?>"><i class="ti ti-pencil mr-2"></i><?php echo e(__('Edit')); ?></a> <?php endif; ?> </div> <div class="col-md-6 col-lg-4 col-xl-4 send_invoice"> <div class="timeline-icons"><span class="timeline-dots"></span> <i class="ti ti-mail text-warning"></i> </div> <h6 class="text-warning my-3"><?php echo e(__('Send Proposal')); ?></h6> <p class="text-muted text-sm mb-3"> <?php if($proposal->status!=0): ?> <i class="ti ti-clock mr-2"></i><?php echo e(__('Sent on')); ?> <?php echo e(\Auth::user()->dateFormat($proposal->send_date)); ?> <?php else: ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('send proposal')): ?> <small><?php echo e(__('Status')); ?> : <?php echo e(__('Not Sent')); ?></small> <?php endif; ?> <?php endif; ?> </p> <?php if($proposal->status==0): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('send proposal')): ?> <a href="<?php echo e(route('proposal.sent',$proposal->id)); ?>" class="btn btn-sm btn-warning" data-bs-toggle="tooltip" data-original-title="<?php echo e(__('Mark Sent')); ?>"><i class="ti ti-send mr-2"></i><?php echo e(__('Send')); ?></a> <?php endif; ?> <?php endif; ?> </div> <div class="col-md-6 col-lg-4 col-xl-4 create_invoice"> <div class="timeline-icons"><span class="timeline-dots"></span> <i class="ti ti-report-money text-info"></i> </div> <h6 class="text-info my-3"><?php echo e(__('Proposal Status')); ?></h6> <small> <?php if($proposal->status == 0): ?> <span class="badge bg-primary p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 1): ?> <span class="badge bg-info p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 2): ?> <span class="badge bg-success p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 3): ?> <span class="badge bg-warning p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 4): ?> <span class="badge bg-danger p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php endif; ?> </small> <br> <div class="float-right mt-2 col-md-3 float-end ml-5" data-toggle="tooltip" data-original-title="<?php echo e(__('Click to change status')); ?>"> <select class="form-control status_change select2" name="status" data-url="<?php echo e(route('proposal.status.change',$proposal->id)); ?>"> <?php $__currentLoopData = $status; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($k); ?>" <?php echo e(($proposal->status==$k)?'selected':''); ?>><?php echo e($val); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> </div> </div> </div> </div> <?php endif; ?> <?php endif; ?> <?php if(\Auth::user()->type=='company'): ?> <?php if($proposal->status!=0): ?> <div class="row justify-content-between align-items-center mb-3"> <div class="col-md-12 d-flex align-items-center justify-content-between justify-content-md-end"> <div class="all-button-box mx-2"> <a href="<?php echo e(route('proposal.resent',$proposal->id)); ?>" class="btn btn-primary"><?php echo e(__('Resend Proposal')); ?></a> </div> <div class="all-button-box"> <a href="<?php echo e(route('proposal.pdf', Crypt::encrypt($proposal->id))); ?>" class="btn btn-primary" target="_blank"><?php echo e(__('Download')); ?></a> </div> </div> </div> <?php endif; ?> <?php else: ?> <div class="row justify-content-between align-items-center mb-3"> <div class="col-md-12 d-flex align-items-center justify-content-between justify-content-md-end"> <div class="all-button-box"> <a href="<?php echo e(route('proposal.pdf', Crypt::encrypt($proposal->id))); ?>" class="btn btn-xs btn-white btn-icon-only width-auto" target="_blank"><?php echo e(__('Download')); ?></a> </div> </div> </div> <?php endif; ?> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="invoice"> <div class="invoice-print"> <div class="row invoice-title mt-2"> <div class="col-xs-12 col-sm-12 col-nd-6 col-lg-6 col-12"> <h4><?php echo e(__('Proposal')); ?></h4> </div> <div class="col-xs-12 col-sm-12 col-nd-6 col-lg-6 col-12 text-end"> <h4 class="invoice-number"><?php echo e(Auth::user()->proposalNumberFormat($proposal->proposal_id)); ?></h4> </div> <div class="col-12"> <hr> </div> </div> <div class="row"> <div class="col text-end"> <div class="d-flex align-items-center justify-content-end"> <div class="me-4"> <small> <strong><?php echo e(__('Issue Date')); ?> :</strong><br> <?php echo e(\Auth::user()->dateFormat($proposal->issue_date)); ?><br><br> </small> </div> </div> </div> </div> <div class="row"> <div class="col"> <small class="font-style"> <strong><?php echo e(__('Billed To')); ?> :</strong><br> <?php if(!empty($customer->billing_name)): ?> <?php echo e(!empty($customer->billing_name)?$customer->billing_name:''); ?><br> <?php echo e(!empty($customer->billing_address)?$customer->billing_address:''); ?><br> <?php echo e(!empty($customer->billing_city)?$customer->billing_city:'' .', '); ?><br> <?php echo e(!empty($customer->billing_state)?$customer->billing_state:'',', '); ?>, <?php echo e(!empty($customer->billing_zip)?$customer->billing_zip:''); ?><br> <?php echo e(!empty($customer->billing_country)?$customer->billing_country:''); ?><br> <?php echo e(!empty($customer->billing_phone)?$customer->billing_phone:''); ?><br> <?php if($settings['vat_gst_number_switch'] == 'on'): ?> <strong><?php echo e(__('Tax Number ')); ?> : </strong><?php echo e(!empty($customer->tax_number)?$customer->tax_number:''); ?> <?php endif; ?> <?php else: ?> - <?php endif; ?> </small> </div> <?php if(App\Models\Utility::getValByName('shipping_display')=='on'): ?> <div class="col"> <small> <strong><?php echo e(__('Shipped To')); ?> :</strong><br> <?php if(!empty($customer->shipping_name)): ?> <?php echo e(!empty($customer->shipping_name)?$customer->shipping_name:''); ?><br> <?php echo e(!empty($customer->shipping_address)?$customer->shipping_address:''); ?><br> <?php echo e(!empty($customer->shipping_city)?$customer->shipping_city:'' . ', '); ?><br> <?php echo e(!empty($customer->shipping_state)?$customer->shipping_state:'' .', '); ?>, <?php echo e(!empty($customer->shipping_zip)?$customer->shipping_zip:''); ?><br> <?php echo e(!empty($customer->shipping_country)?$customer->shipping_country:''); ?><br> <?php echo e(!empty($customer->shipping_phone)?$customer->shipping_phone:''); ?><br> <?php else: ?> - <?php endif; ?> </small> </div> <?php endif; ?> <div class="col"> <div class="float-end mt-3"> <?php echo DNS2D::getBarcodeHTML( route('proposal.link.copy',\Illuminate\Support\Facades\Crypt::encrypt($proposal->id)), "QRCODE",2,2); ?> </div> </div> </div> <div class="row mt-3"> <div class="col"> <small> <strong><?php echo e(__('Status')); ?> :</strong><br> <?php if($proposal->status == 0): ?> <span class="badge bg-primary p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 1): ?> <span class="badge bg-info p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 2): ?> <span class="badge bg-success p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 3): ?> <span class="badge bg-warning p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php elseif($proposal->status == 4): ?> <span class="badge bg-danger p-2 px-3 rounded"><?php echo e(__(\App\Models\Proposal::$statues[$proposal->status])); ?></span> <?php endif; ?> </small> </div> </div> <?php if(!empty($customFields) && count($proposal->customField)>0): ?> <?php $__currentLoopData = $customFields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $field): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col text-end"> <small> <strong><?php echo e($field->name); ?> :</strong><br> <?php echo e(!empty($proposal->customField)?$proposal->customField[$field->id]:'-'); ?> <br><br> </small> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <div class="row mt-4"> <div class="col-md-12"> <div class="font-weight-bold"><?php echo e(__('Product Summary')); ?></div> <small><?php echo e(__('All items here cannot be deleted.')); ?></small> <div class="table-responsive mt-2"> <table class="table mb-0 invoice-body"> <thead> <tr> <th class="text-dark" data-width="40">#</th> <th class="text-dark"><?php echo e(__('Product')); ?></th> <th class="text-dark"><?php echo e(__('Quantity')); ?></th> <th class="text-dark"><?php echo e(__('Rate')); ?></th> <th class="text-dark"> <?php echo e(__('Discount')); ?></th> <th class="text-dark"><?php echo e(__('Tax')); ?></th> <th class="text-dark"><?php echo e(__('Description')); ?></th> <th class="text-end text-dark" width="12%"><?php echo e(__('Price')); ?><br> <small class="text-danger font-weight-bold"><?php echo e(__('after tax & discount')); ?></small> </th> </tr> </thead> <?php $totalQuantity=0; $totalRate=0; $totalTaxPrice=0; $totalDiscount=0; $taxesData=[]; ?> <?php $__currentLoopData = $iteams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$iteam): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($key + 1); ?></td> <?php $productName = $iteam->product; $totalQuantity += $iteam->quantity; $totalRate += $iteam->price; $totalDiscount += $iteam->discount; ?> <td><?php echo e(!empty($productName) ? $productName->name : ''); ?></td> <td><?php echo e($iteam->quantity . ' (' . $productName->unit->name . ')'); ?></td> <td><?php echo e(\Auth::user()->priceFormat($iteam->price)); ?></td> <td><?php echo e(\Auth::user()->priceFormat($iteam->discount)); ?></td> <td> <?php if(!empty($iteam->tax)): ?> <table> <?php $itemTaxes = []; $getTaxData = Utility::getTaxData(); if (!empty($iteam->tax)) { foreach (explode(',', $iteam->tax) as $tax) { $taxPrice = \Utility::taxRate($getTaxData[$tax]['rate'], $iteam->price, $iteam->quantity); $totalTaxPrice += $taxPrice; $itemTax['name'] = $getTaxData[$tax]['name']; $itemTax['rate'] = $getTaxData[$tax]['rate'] . '%'; $itemTax['price'] = \Auth::user()->priceFormat($taxPrice); $itemTaxes[] = $itemTax; if (array_key_exists($getTaxData[$tax]['name'], $taxesData)) { $taxesData[$getTaxData[$tax]['name']] = $taxesData[$getTaxData[$tax]['name']] + $taxPrice; } else { $taxesData[$getTaxData[$tax]['name']] = $taxPrice; } } $iteam->itemTax = $itemTaxes; } else { $iteam->itemTax = []; } ?> <?php $__currentLoopData = $iteam->itemTax; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tax): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($tax['name'] .' ('.$tax['rate'] .'%)'); ?></td> <td><?php echo e($tax['price']); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </table> <?php else: ?> - <?php endif; ?> </td> <td><?php echo e(!empty($iteam->description)?$iteam->description:'-'); ?></td> <td class="text-end"><?php echo e(\Auth::user()->priceFormat(($iteam->price * $iteam->quantity - $iteam->discount) + $totalTaxPrice)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <tfoot> <tr> <td></td> <td><b><?php echo e(__('Total')); ?></b></td> <td><b><?php echo e($totalQuantity); ?></b></td> <td><b><?php echo e(\Auth::user()->priceFormat($totalRate)); ?></b></td> <td><b><?php echo e(\Auth::user()->priceFormat($totalDiscount)); ?></b> <td><b><?php echo e(\Auth::user()->priceFormat($totalTaxPrice)); ?></b></td> </td> <td></td> <td></td> </tr> <tr> <td colspan="6"></td> <td class="text-end"><b><?php echo e(__('Sub Total')); ?></b></td> <td class="text-end"><?php echo e(\Auth::user()->priceFormat($proposal->getSubTotal())); ?></td> </tr> <tr> <td colspan="6"></td> <td class="text-end"><b><?php echo e(__('Discount')); ?></b></td> <td class="text-end"><?php echo e(\Auth::user()->priceFormat($proposal->getTotalDiscount())); ?></td> </tr> <?php if(!empty($taxesData)): ?> <?php $__currentLoopData = $taxesData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $taxName => $taxPrice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td colspan="6"></td> <td class="text-end"><b><?php echo e($taxName); ?></b></td> <td class="text-end"><?php echo e(\Auth::user()->priceFormat($taxPrice)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> <tr> <td colspan="6"></td> <td class="blue-text text-end"><b><?php echo e(__('Total')); ?></b></td> <td class="blue-text text-end"><?php echo e(\Auth::user()->priceFormat($proposal->getTotal())); ?></td> </tr> </tfoot> </table> <div class="invoice-footer"> <b><?php echo e($settings['footer_title']); ?></b> <br> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/crm/resources/views/proposal/view.blade.php ENDPATH**/ ?>