@include('admin.layout.title_header', ['title'=>'ORDER SUMMERY'])
{{--
--}}
@php
$printData['start_date']=Request()->date_from?date('d-M-Y',strtotime(Request()->date_from)):date('d-M-Y');
$printData['end_date']=Request()->date_to?date('d-M-Y',strtotime(Request()->date_to)):date('d-M-Y');
$printData['showroom']=Request()->showroom && Request()->showroom!=0?$customers->where('id',Request()->showroom)->first()->name_eng:'All Showroom';
$printData['search_by']=Request()->product_id && Request()->product_id!=0?$products->where('id',Request()->product_id)->first()->name_eng:(Request()->category_code && Request()->category_code!=0?$categories->where('code',Request()->category_code)->first()->name_eng:'All Category');
$routeName=Route::currentRouteName();
$printData=getPrintData($routeName,$printData);
@endphp
{!!$printData['head']!!}
{{--
ORDER SUMMERY
@if(Request()->showroom && Request()->showroom!=0)
{{$customers->where('id',Request()->showroom)->first()->name_eng}}
@else
All Showroom
@endif
@if(Request()->date_from)
{{ 'From '.date('d-M-Y',strtotime(Request()->date_from)).' To '.date('d-M-Y',strtotime(Request()->date_to))}}
@endif --}}
| # |
PRODUCT |
Quantity |
Unit |
{{-- @forelse ($showRooms as $party_id => $showRoom)
SHOWROOM :{{$showRoom->first()->showroom->name_eng}} Address :{{$showRoom->first()->showroom->address}} |
--}}
@php
$i=1;
@endphp
@if(count($transactions))
@forelse ($transactions->groupBy('product.cat_code') as $k=>$categoryProduct)
| {{$categoryProduct->first()->product->catByCatCode?$categoryProduct->first()->product->catByCatCode->name_eng:'N/A'}} |
@forelse ($categoryProduct->groupBy('product_id') as $key=>$item)
| {{$i++}} |
{{Request()->name_type?$item->first()->product->name_local:$item->first()->product->name_eng}} |
{{Request()->name_type?getNumberInBangla(number_format($item->sum(Request()->delivered==1?'quantity':'order_qty'),2)):number_format($item->sum(Request()->delivered==1?'quantity':'order_qty'),2)}} |
{{$item->first()->product->primaryUnit?$item->first()->product->primaryUnit->name:'N/A'}} |
@empty
@endforelse
@empty
| No Data Available |
@endforelse
@endif
{{-- @empty
@endforelse --}}