@include('admin.reports.productsReport.pdf.style')
{{-- --}} {{-- Logo--}} {{-- --}}
@lang('admin.orders_report')

@if ($paymentType != null)
@lang('admin.payment_method') : {{ $paymentType != null ? $paymentType->name : \Illuminate\Support\Facades\Lang::get('admin.all_payments') }}
@endif @if ($shippingType != null)
@lang('admin.delivery_report') : {{ $shippingType != null ? $shippingType->name : \Illuminate\Support\Facades\Lang::get('admin.all_delivery') }}
@endif @if ($status != null)
@lang('admin.status') : {{ $status != null ? $status : \Illuminate\Support\Facades\Lang::get('admin.all_status') }}
@endif @if ($from != null)
@lang('admin.time') : {{ $from != null || $to != null ? \Illuminate\Support\Facades\Lang::get('admin.from') . $from . \Illuminate\Support\Facades\Lang::get('admin.to') . $to : \Illuminate\Support\Facades\Lang::get('admin.no_time') }}
@endif

@lang('admin.total_sales') : {{ $total }} @lang('admin.KD')

{{--
--}} {{--
--}}
@foreach($data as $row) @endforeach
@lang('admin.orderNumber') @lang('admin.payment_type') @lang('admin.order_date') @lang('admin.order_time') @lang('admin.status') @lang('admin.ship_type') @lang('admin.phone') @lang('admin.orderTotal')
{{ $row->order_number }} {{ $row->paymentMethod->name }} {{ date('d-m-Y', strtotime($row->created_at)) }} {{ date('H:i:s A', strtotime($row->created_at)) }} {{ $row->status }} {{ $row->shipping_Type}} {{ $row->user->name . ' ' . '(' . $row->user->phone . ')' }} {{ $row->total_price }}