@extends('admin.layout.master') @section('title','ORDER Summery') @section('custom_style') @endsection @section ('content')
@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 --}} {{-- @forelse ($showRooms as $party_id => $showRoom) --}} @php $i=1; @endphp @if(count($transactions)) @forelse ($transactions->groupBy('product.cat_code') as $k=>$categoryProduct) @forelse ($categoryProduct->groupBy('product_id') as $key=>$item) @empty @endforelse @empty @endforelse @endif {{-- @empty @endforelse --}}
# PRODUCT Quantity Unit
SHOWROOM :{{$showRoom->first()->showroom->name_eng}}
Address :{{$showRoom->first()->showroom->address}}
{{$categoryProduct->first()->product->catByCatCode?$categoryProduct->first()->product->catByCatCode->name_eng:'N/A'}}
{{$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'}}
No Data Available

{{-- @include('inventory.order.detail_modal') --}} @endsection @section('script') @stop