@extends('layout.app') @section('title', 'Stock Group Summary') @push('header_script') @endpush @section('content')
Stock Group Summary
As on Date: {{ date('d-M-Y', strtotime($asOfDate)) }}
@php $grandTotalValue = 0; @endphp @forelse($categoriesData as $cat) @php $grandTotalValue += $cat['total_value']; @endphp @empty @endforelse
Particulars Quantity Rate Value
{{ $cat['category_name'] }} @if($cat['same_unit']) {{ number_format($cat['total_qty'], 2) }} {{ $cat['unit_name'] }} @else - @endif @if($cat['same_unit'] && $cat['total_qty'] > 0) {{ number_format($cat['total_value'] / $cat['total_qty'], 2) }} @else - @endif {{ number_format($cat['total_value'], 2) }}
No Stock Category Data Available
Grand Total {{ number_format($grandTotalValue, 2) }}
@endsection @push('footer_script') @endpush