Order Id |
Created At |
Invoiced |
Package/Type |
Company Name |
Status |
@forelse ($orders as $index => $order)
{{ $order->order_id }} |
{{ date('Y-m-d', strtotime($order->created_at)) }} |
@if (isset($order->transactions[0]->invoice_id))
{{$order->transactions[0]->invoice_id}}
@else
-
@endif
|
@php
if ($order->cart->package != null) {
$package_type = $order->cart->package->package_type;
} else {
$package_type = $order->getCompanyByOrderId->companie_type;
// $package_type = '-';
}
$full_pkg_type = '-';
if (stripos($package_type, 'shares') !== false) {
$full_pkg_type = 'Limited By Shares';
}
if (stripos($package_type, 'Guarantee') !== false) {
$full_pkg_type = 'Limited By Guarantee';
}
if (stripos($package_type, 'Residents') !== false) {
$full_pkg_type = 'Non Residents Package';
}
if (stripos($package_type, 'PLC') !== false) {
$full_pkg_type = 'Public Limited Company';
}
if (stripos($package_type, 'Eseller') !== false) {
$full_pkg_type = 'Eseller Package';
}
if (stripos($package_type, 'LLP') !== false) {
$full_pkg_type = 'LLP Package';
}
@endphp
{{ $full_pkg_type }} |
{{strtoupper( $order->company_name) }} |
|
@empty
No Record Found. |
@endforelse
{{-- @if ($customer->hasPages()) --}}
{{-- @endif --}}
@if (Session::has('success'))
{{ Session::get('success') }}
@endif
@endsection
@section('scripts')
@include('admin.commonScript.script')
@endsection