@php $total = 0; @endphp

{{ App\Libraries\AppLibrary::textShortener($company['company_name'], 60) }}

{{ App\Libraries\AppLibrary::textShortener($company['company_address'],60) }}

{{ trans('all.label.online_orders', [], 'en') }}

@foreach ($orders as $order) @php $total+= $order->total @endphp @endforeach
{{ trans('all.label.order_serial_no', [], 'en') }} {{ trans('all.label.order_type', [], 'en') }} {{ trans('all.label.customer', [], 'en') }} {{ trans('all.label.date', [], 'en') }} {{ trans('all.label.status', [], 'en') }} {{ trans('all.label.amount', [], 'en') }}
{{$order->order_serial_no}} {{trans('orderType.' . $order->order_type, [], 'en')}} {{$order->user?->name}} {{ App\Libraries\AppLibrary::datetime($order->order_datetime) }} {{ trans('orderStatus.' . $order->status, [], 'en') }} {{ App\Libraries\AppLibrary::reportCurrencyAmountFormat($order->total) }}
{{ trans('all.label.total', [], 'en') }} {{ App\Libraries\AppLibrary::reportCurrencyAmountFormat($total) }}