@extends('layouts.app') @section('title') {{'Group/Sub Group Wise Sales Report '}} @endsection @section('content') @include('layouts.numbertowords')
|
Customer Name : {{ $supplier_list[0]->id }} - {{ $supplier_list[0]->name }}
|
|||||||||||
|
Contact Person : {{ $supplier_list[0]->person_name }}
|
|||||||||||
|
Address : {{ $supplier_list[0]->address }}
|
|||||||||||
|
Mobile No. : {{ $supplier_list[0]->mobile }}
|
@if (isset($_GET['group_id']) && $_GET['group_id'] != "")
@php
$selected_group = null;
foreach ($group_info as $val) {
if ($val->id == $_GET['group_id']) {
$selected_group = $val;
break;
}
}
@endphp
@if ($selected_group)
Group Name: {{ $selected_group->values }}
@endif
@elseif (isset($_GET['sub_group_id']) && $_GET['sub_group_id'] != "")
@php
$selected_sub_group = null;
foreach ($sub_group_info as $val) {
if ($val->id == $_GET['sub_group_id']) {
$selected_sub_group = $val;
break;
}
}
@endphp
@if ($selected_sub_group)
Sub Group Name : {{ $selected_sub_group->department_name }}
@endif
@else
Group/Sub Group : {{ isset($_GET['id']) && $_GET['id'] == "All" ? "All" : "Summary" }}
@endif
|
@endif
||||||||||
| S.L. | ID | Item Name | Unit | Sales Quantity | Amount | Comm. Tk. | Total | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Customer Name: {{ $cust_name }} | |||||||||||
| {{ $catrow->department_name }} | |||||||||||
| '. $i++ .' | '; echo ''. $info['product_id'] .' | '; echo ''. $info['product_name'] .' | '; echo ''. $info['pack_type'] .' | '; echo ''. $info['product_qty'] .' | '; echo ''. number_format($info['amount'],2) .' | '; echo ''. number_format($info['commission_tk'],2) .' | '; echo ''. number_format($info['total_value'],2) .' | '; echo '||||
| Sub Total = | {!! number_format($sub_torder_quantity) !!} | {!! number_format($sub_total_price,2) !!} | {!! number_format($sub_commission_tk,2) !!} | {!! number_format($sub_total_value,2) !!} | |||||||
| Sub Grand Total = | {!! number_format($sub_grand_qty) !!} | {!! number_format($sub_grand_total,2) !!} | {!! number_format($sub_grand_commission_tk,2) !!} | {!! number_format($sub_grand_total_value,2) !!} | |||||||
| {{ $catrow->department_name }} | |||||||||||
| '. $i++ .' | '; echo ''. $product_id .' | '; echo ''. $product_name .' | '; echo ''. $pack_type .' | '; echo ''. $product_qty .' | '; echo ''. number_format($amount,2) .' | '; echo ''. number_format($commission_tk,2) .' | '; echo ''. number_format($total_value,2) .' | '; echo '||||
| Sub Total = | {!! number_format($sub_torder_quantity) !!} | {!! number_format($sub_total_price,2) !!} | {!! number_format($sub_commission_tk,2) !!} | {!! number_format($sub_total_value,2) !!} | |||||||
| Grand Total = | {!! number_format($grand_torder_quantity) !!} | {{ number_format($grand_total_price,2) }} | {{ number_format($grand_total_commission_tk,2) }} | {{ number_format($grand_total_value,2) }} | |||||||
| IN WORDS : {!! numberTowords($grand_total_value) !!} | |||||||||||