@php $total_quantity = 0; @endphp

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

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

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

@foreach ($items as $item) @php $total_quantity+= $item->orders->count(); @endphp @endforeach
{{ trans('all.label.name', [], 'en') }} {{ trans('all.label.item_category_id', [], 'en') }} {{ trans('all.label.item_type', [], 'en') }} {{ trans('all.label.quantity', [], 'en') }}
{{$item->name}} {{ optional($item->category)->name }} {{ trans( 'itemType.' . $item->item_type , [] , 'en') }} {{ $item->orders->count() }}
{{ trans('all.label.total', [], 'en') }} {{ $total_quantity }}