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


ORDER INFORMATION (Order Code: {{$order->order_code}})

Project Work Cycle
@if (!empty($Order_slice_internal) && !empty($assigntouser)) @foreach ($Order_slice_internal as $slice) @php $intId = $slice['id']; @endphp @if (isset($arrNewIntAttach[$intId])) @php $intStatus = $slice['status']; $intDescription = $slice['description']; $deliveryDate = $slice['delivery_date']; $textColor = '#fff'; $statusColors = [ 'In Process' => '#FFA500', 'TBA' => '#344F7B', 'Ready' => '#D3D3D3', 'Delivered' => '#9ACD32', 'Feedback' => '#0312F5', 'Feedback Ready' => '#1DB5DD', 'Checked' => '#9D6969', 'Quality Rejected' => '#000', 'Cancelled' => '#FFFF00', 'Hold' => '#C836DA', 'Team Allotted' => '#B25757', ]; $color = $statusColors[$intStatus] ?? '#D3D3D3'; if (in_array($intStatus, ['Ready', 'Cancelled'])) { $textColor = 'blue'; } @endphp @foreach ($arrNewIntAttach[$intId] as $index => $doc) @php $document = $doc; $user = $doc['User']; $documentId = $document['id']; $userFlag = $document['user_internal_external_flag']; $userImg = $user['profile_img'] ?? 'user_default.jpg'; $teamType = $userFlag == 1 ? 'Ext.' : 'Int.'; $fileName = str_replace(' ', '', $document['document']); $fileExt = pathinfo($fileName, PATHINFO_EXTENSION); $internalFileUpload = ''; $internal_ordr_document = ''; $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/'; $filePath = $internalFileUpload . 'internal_ordr_document/' . $fileName; $fileUrl = file_exists($filePath) ? $filePath : $s3url . $site_sort_name_file . '/internal_ordr_document/' . $fileName; @endphp @endforeach @endif @endforeach
#{{ $intId }} Deadline: {{ $deliveryDate }}
Status: {{ $intStatus }}
Desc: {{ $intDescription }}
Documents Description Status @if ($deliveryDate == ($data['Order']['project_deadline'] ?? '')) @endif Qua. Check Status Date
{{ $index + 1 }} {{ $teamType }} @if ($fileName) .{{ $fileExt }} {{ $fileName }} @if (in_array(strtolower($fileExt), ['pdf','png','gif','jpg','jpeg'])) @endif @else File Not Available @endif {{ $document['description'] }} {{ $document['status'] }} @if ($document['file_complete'] == 1) Complete Checked @elseif ($document['file_complete'] == 2) Partially Checked @endif @if (!empty($document['word_checkby_qu'])) ({{ $document['word_checkby_qu'] }}) @endif {{ \Carbon\Carbon::parse($document['current_time'])->format('d M-Y h:i A') }}
@endif
@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 $type_arr = json_decode(html_entity_decode($order->type ?? ''), true); @endphp @if (empty($type_arr) || $type_arr == '{' || ($type_arr['group_name'] ?? '') == '')
@endif
@php $urgency = strtolower($order->urgency ?? ''); $isHourUrgency = str_contains($urgency, 'hours'); $urgencySave = trim($urgency === '1 day' ? '1 days' : $urgency); @endphp
@if(!$isHourUrgency) @else @endif
@php $level = $order->level ?? ''; @endphp @if ($level == '' || $level == 'FIRST CLASS STANDARD' || $level == '2:1 STANDARD' || $level == '2:2 STANDARD') @else @endif
@if (empty($page_avil)) @else @endif
@php $selectedSource = $order->sources ?? ''; @endphp
@php $stylez = $order->style ?? ''; $predefinedStyles = ['APA', 'MLA', 'Turabian', 'Chicago', 'Harvard']; @endphp @if (empty($page_avil) || in_array($stylez, $predefinedStyles)) @else @endif
@php $projectStatus = $order->project_status ?? ''; @endphp

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

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
@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
DATE INFO (Final delivery Date: {{$dddate}})
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
@endsection
Payment Link copied!
@if ($vendor_order == 1) @else @endif