{{$items->detail->product_model}} ({{availabilityCondition($items->detail->available_condition)}}) |
{{-- {{$items->detail->serial_number}} | --}}
{{$items->total_qty}} |
{{$items->order->ship_phone_number}} |
@if ($items['order']['ship_name'] != '')
{{str_replace([",",'"',"'"],[".","",""],$items['order']['ship_name'])}} |
@else
No Name |
@endif
@php
$suite = !empty($items["order"]['formatted_shipping_address']['suite'])?" ".($items["order"]['formatted_shipping_address']['suite'] !== "-"?$items["order"]['formatted_shipping_address']['suite']:""):"";
@endphp
{{$items->order->formatted_shipping_address['number']}} {{$items->order->formatted_shipping_address['street'].$suite}} |
{{$items->order->formatted_shipping_address['city']}} |
{{$items->state}} |
{{$items->order->formatted_shipping_address['postal_code']}} |
{{$items->order_no}} |
@if ($company->company_type == 2)
{{$items->company_name}} |
@endif
{{date("Y-m-d", strtotime($items->delivery_date))}} |
@if (isset($notes[0]))
{{str_replace([",",'"',"'"],[".","",""],$notes[0]['formatted_note'])}} {Sales Person: {{str_replace([",",'"',"'"],[".","",""],$items['order']['sales_person']['fullname'])}}} |
@else
{Sales Person: {{str_replace([",",'"',"'"],[".","",""],$items->order->sales_person['fullname'])}}} |
@endif
@if (isset($notes[1]))
{{str_replace([",",'"',"'"],[".","",""],$notes[1]['formatted_note'])}} |
@else
No Notes |
@endif
@if (isset($notes[2]))
{{str_replace([",",'"',"'"],[".","",""],$notes[2]['formatted_note'])}} |
@else
No Notes |
@endif
{{-- {{$item['productv2']['base_product']['brand']['name']}} | --}}
{{$items->detail['product_brand']}} |
{{$items->order->bill_phone_number}} |
{{str_replace([",",'"',"'"],[".","",""],$items->order->bill_name)}} |
{{$store_name = str_replace([",",'"',"'"],[".","",""],$items['store']["store_name"])}} |
@if (isset($item['install_name_list'][0]) && $item['install_name_list'][0] != '' )
@php
$install = "No Install";
if(count($items["order_detail_return"]) > 0){
$filtered_install = [];
foreach($item['install_name_list'] as $install_name){
foreach($item["order_detail_return"] as $return){
$install_namer = explode('@#@', $return["install_name"]);
$install_qty = explode('@#@', $return["install_qty"]);
foreach($install_namer as $i => $rr){
if($install_name == $rr){
$qtys = $items->detail->quantity - $install_qty[$i];
if($qtys > 0){
$filtered_install[] = $install_name;
}
}else{
$filtered_install[] = $install_name;
}
}
}
}
if(count($filtered_install) > 0){
$install = str_replace([",",'"',"'"],[".","",""],implode(". ",$filtered_install));
}else{
$install = "No Install";
}
}else{
$install = str_replace([",",'"',"'"],[".","",""],implode(". ",$item['install_name_list']));
}
@endphp
{{$install}} |
@else
No Install |
@endif
{{str_replace([",",'"',"'"],[".","",""],$items->order->sales_person->fullname)}} |
{{-- {{$items['install_name_list']}} | --}}
{{-- {{$items['ship_name']}} |
{{$items['ship_phone_number']}} |
{{$items['ship_home_number']}} |
{{$item['productv2']['basic_description']}} |
|
{{$items['bill_email']}} | --}}
{{-- @empty
@endforelse --}}
@empty