@extends('layout.master') @section('content') @php $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $actual_link = parse_url($actual_link)['path']; $url_components = explode('/', $actual_link); //dd($url_components,end($url_components),prev($url_components)); $id = base64_decode(end($url_components)); $checkedInsurance = prev($url_components); $randomIdAll = rand() . 'all0121' . date('Y-m-d H:m:s'); $randomIdAir = rand() . 'air02123123' . date('Y-m-d H:m:s'); $randomIdSurface = rand() . 'surface03123123' . date('Y-m-d H:m:s'); $randomIdSelf = rand() . 'self04123213123' . date('Y-m-d H:m:s'); $randomIdB2BOrB2C = rand() . 'b2borb2cs04123213123' . date('Y-m-d H:m:s'); $role = Auth::user()->role; @endphp

Select Courier Partner

@php if (isset($orders['product_details'])) { $weight = number_format((float)@$orders['product_details']['weight'],3); } else { $weight = number_format((float)@$orders['product_weight'],3); } @endphp
@php $lspNameArray = []; $lspType = []; //dd($orders['lsp_ratings']); @endphp @foreach ($orders['lsp_ratings'] as $ratingKeys => $ratingValues) @if (!in_array(@$ratingValues['lspData']['name'], $lspNameArray) && $ratingValues['lspData'] != '')
@php $randomIdAll = @$ratingValues['suraface_type'] == 'air' ? $randomIdAll.'air' : $randomIdAll.'surface'; @endphp
@endif @php array_push($lspNameArray, strtoupper(@$ratingValues['lspData']['name'])); array_push($lspType, @$ratingValues['suraface_type']); @endphp @endforeach
@foreach ($orders['lsp_ratings_air'] as $ratingKeys => $ratingValues) @if (!in_array(@$ratingValues['lspData']['name'], $lspNameArray) && $ratingValues['lspData'] != '')
@endif @endforeach
@foreach ($orders['lsp_ratings_surface'] as $ratingKeys => $ratingValues) @if (!in_array(@$ratingValues['lspData']['name'], $lspNameArray) && $ratingValues['lspData'] != '')
@endif @endforeach
@csrf

self-fullfilled Details

@php $buyerDetails = isset($orders['order_details']['buyers_json_data']) ? json_decode($orders['order_details']['buyers_json_data'])->buyers_details->users_details : ''; $buyerAddress = isset($orders['order_details']['buyers_json_data']) ? json_decode($orders['order_details']['buyers_json_data'])->buyers_details->user_address : ''; // $sellerAddress = isset($orders['order_details']['others_json_data']) ? json_decode($orders['order_details']['others_json_data'])->seller_details->seller_address : ''; @endphp

@endsection