AMOUNT INFORMATION
@php
$site_sort_name_file = $order->site_sort_name;
$fileLocation = $backup_files_location . $site_sort_name_file . '/file_attech/';
$fileName = 'cust_doc_' . now()->format('d-M-Y h:i:s A') . '.zip';
$s3url = 'https://assignmentfile.s3.eu-west-2.amazonaws.com/';
@endphp
| Amount |
Date |
Source |
Description |
Image |
@foreach ($attachments as $file)
@php
$cleanFile = str_replace(" ", "", $file->image);
$extension = strtolower(pathinfo($cleanFile, PATHINFO_EXTENSION));
$path = $fileLocation . $file;
if (!check_file_exist($path)) {
$path = $s3url . $site_sort_name_file . '/' . urlencode($file->image);
}
$viewerLink = $path;
if (in_array($extension, ['xls', 'xlsx', 'doc', 'docx', 'ppt', 'pptx', 'odt'])) {
$viewerLink = 'https://view.officeapps.live.com/op/view.aspx?src=' . urlencode($path);
}
@endphp
| |
|
|
|
.{{ $extension }}
|
@endforeach
|
|
|
|
|
|
|
|
@php
$currName = $order->order_currency;
$currValue = $order->current_value;
if (empty($order->current_value)) {
$currValue = 1;
$currName = "USD";
}
$payCurr = $order->payment_type;
if (empty($order->payment_type)) {
$payCurr = $order->curr_name;
}
$rwards_point_balance = $customer->rwards_point ?? 0;
$cost = $order->cost ?? 0;
$due = $order->due ?? 0;
$paid = isset($order->paid) && $order->paid !== '' ? round($order->paid, 2) : 0;
@endphp
{{-- Currency Name (hidden) --}}
@if ($order->vendor_order == 1)
@endif
{{-- Cost Before Discount (conditionally hidden) --}}
@if(!empty($order->price_without_offer) && $order->vendor_order == 0)
@else
@endif
{{-- Turnitin Report Cost --}}
{{-- Total Quoted Cost --}}
@php
$orderCost = is_numeric($order->cost) ? round($order->cost, 2) : 0;
$dueAmt = is_numeric($order->due) ? round($order->due, 2) : 0;
@endphp
@if($order->vendor_order == 0)
@endif
@php
$quotationMailTemplateId = $mailstatus->quotation_mail_templates_id ?? null;
$dueAmt = is_numeric($order->due) ? round($order->due, 2) : 0;
$paymentGatewayPay = empty($order->pay_payment_gatway_temp) || $order->pay_payment_gatway_temp == 0
? $dueAmt
: round($order->pay_payment_gatway_temp, 2);
@endphp
@php
$payment_slice = $payment_slice ?? null;
@endphp
{{-- JS Function for Validation --}}
@php
$final_date_of_delivery = $order->ddate;
$final_date_of_delivery .= ' ' . $order->dtime;
$dddate = date('d-M-Y h:i A', strtotime($final_date_of_delivery));
@endphp
Delivered attachment after Order Complete
@php
$imgChk1 = $order->turnitin_report_price > 0 ? 'download_completed.png' : 'redcross.png';
@endphp
@php
$deliveredFiles = explode(',', $order->delivered_files ?? '');
$descriptions = unserialize($order->delivered_files_description ?? '') ?? [];
@endphp