@extends('Users.app') @section('content') @php $page_avil = $order->pages; $rwards_point_balance = $order->customer->rwards_point; $isUsd = strtoupper($order['curr_name']) != 'USD'; $vendor_order = $order->vendor_order; @endphp
Edit Lead
@csrf
PERSONAL INFORMATION


ORDER INFORMATION
@php $typeRaw = $order->type; $typeArr = json_decode(html_entity_decode($typeRaw), true); $hasGroup = is_array($typeArr) && !empty($typeArr['group_name']); $subjectName = $typeArr['subject_name'] ?? ''; $groupName = $typeArr['group_name'] ?? ''; @endphp @if(!$hasGroup) @else @endif
@php $urgency = strtolower($order->urgency ?? ''); $isHourUrgency = str_contains($urgency, 'hours'); $urgencySave = trim($urgency === '1 day' ? '1 days' : $urgency); @endphp
@if(!$isHourUrgency) @else @endif

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
@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
{{-- JS Function for Validation --}}


DATE INFO
Document Attached by client
@php $attCustFilesStr = $order['file1'] ?? ''; $custAttFiles = $attCustFilesStr ? explode('?|@$', $attCustFilesStr) : []; $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
@endsection @if ($vendor_order == 1) @else @endif