@extends('layouts.app') @section('title', 'Shop Stock Report') @section('css') @endsection @section('content')
Stock Summary
Warehouse = [{{ request('warehouse_id') ? App\Models\Warehouse::find(request('warehouse_id'))->name : 'ALL' }}] @if(request('item_category_id')) , Category = [{{ App\Models\Items\ItemCategory::find(request('item_category_id'))->name }}] @endif @if(request('brand_id')) , Brand = [{{ App\Models\Items\Brand::find(request('brand_id'))->name }}] @endif
@foreach($brands as $brand)
{{ $brand->name }}
@php $totalBrandQty = 0; @endphp @foreach($brand->items as $item)
{{ $item->name }} {{ number_format($item->total_quantity, 0) }}
@if(request('brand_id') && $item->tracking_type == 'serial' && $item->itemSerialQuantities->count() > 0)
@foreach($item->itemSerialQuantities as $sq) {{ $sq->itemSerialMaster->serial_code }} @endforeach
@endif
@php $totalBrandQty += $item->total_quantity; @endphp @endforeach
Category Total = {{ number_format($totalBrandQty, 0) }}
@endforeach
Printed on: {{ date('d/m/Y H:i') }}
@endsection @section('js') @endsection