{{ $order->order_id }}
{{ date('d-m-Y', strtotime($order->created_at)) }}
{{-- {{ strtoupper($order->company_name) ?? "-" }} --}}
{{-- {{ strtoupper($order->company_name) ?? "-" }}
@if ($companyNames->contains(strtoupper($order->company_name)))
Company Name Present
@else
Company Name Not Present
@endif --}}
{{ strtoupper($order->company_name) ?? "-" }}
{{-- @php $orderCompanyNameWithoutSuffix = preg_replace('/\b(?:LTD|LIMITED)\b/i', '', strtoupper($order->company_name)); @endphp --}}
{{-- @dump($orderCompanyNameWithoutSuffix) --}}
{{-- @if (in_array(strtoupper($order->company_name), json_decode($companyNames)))
Company Name Present
@else
Company Name Not Present
@endif --}}
{{--
{{ strtoupper($order->company_name) ?? "-" }}
@if ($companies->companies->pluck('companie_name')->contains(strtoupper($order->company_name)))
Company Name Present
@else
Company Name Not Present
@endif
--}}
{{ $order->company_number ?? "-" }}
{{ $order->auth_code ?? "-" }}
{{--{{ ($order->order_status == 'pending') ? 'INCOMPLETE' : 'ACCEPTED' }} --}}
@php
$company_status = \App\Models\Companie::where('order_id',$order->order_id)->pluck('status')->first();
@endphp
@if ($company_status == '0' )
INCOMPLETE
@elseif ($company_status == '1')
PENDING
@elseif ($company_status == '2')
PROCESSING
@elseif ($company_status == '3')
APPROVED
@elseif ($company_status == '4')
REJECTED
@elseif ($company_status == '8')
IMPORTED
@else
INCOMPLETE
@endif
@if ($company_status == '4')
@endif
@if($company_status == '3' || $company_status == '8' )
View
@else
View
@endif
@endif
@endforeach