@include('admin.reports.productsReport.pdf.style')
@lang('admin.products_report')

@lang('admin.company') : {{ $company != null ? $company->name : \Illuminate\Support\Facades\Lang::get('admin.all_companies') }}

@lang('admin.payment_method') : {{ $paymentType != null ? $paymentType->name : \Illuminate\Support\Facades\Lang::get('admin.all_payments') }}
@lang('admin.delivery_report') : {{ $shippingType != null ? $shippingType->name : \Illuminate\Support\Facades\Lang::get('admin.all_delivery') }}
@lang('admin.status') : {{ $status != null ? $status : \Illuminate\Support\Facades\Lang::get('admin.all_status') }}
@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') }}

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

@lang('admin.report_details')
@foreach($data as $row) @php $price = $row->price; @endphp @endforeach
@lang('admin.name') @lang('admin.orderNumber') @lang('admin.company') @lang('admin.status') @lang('admin.order_date') @lang('admin.phone') @lang('admin.price') @lang('admin.quantity') @lang('admin.total')
{{ $row->product ? $row->product->name : '' }} {{ $row->order->order_number }} {{ $row->company->name }} {{ $row->order->status }} {{ date('d-m-Y H:i:s A', strtotime($row->created_at)) }} {{ $name. ' ' . '(' . $phone . ')' }}{{ $price }} {{ $row->quantity }} {{ $row->quantity * $price }}