@extends('layouts.master') @section('styles') @endsection @section('content')

Report Management

Export Excel

Distributor Current Stock Report

@if (collect($data['brands'])->count()>0) @foreach (collect($data['brands']) as $brand) @php $t_sellable = 0; $t_issued = 0; $t_available = 0; $t_damaged = 0; @endphp @foreach (collect($brand->items) as $item) @php $damaged = $item->damage_qty; $sellabled = $item->sellable_qty; $issued = $item->issued_stock; $available = $item->sellable_qty - $item->issued_stock; $t_sellable += $sellabled; $t_issued += $issued; $t_available += $available; $t_damaged += $damaged; @endphp @endforeach @endforeach @endif
Code/SKU Product Packing Unit Sellable Stock Issued Stock Available Stock Damaged Stock
{{$item->item_sku}} {{$item->item_name}} {{$item->unit_name}} {{number_format($sellabled,2)}} {{number_format($issued,2)}} {{number_format($available,2)}} {{number_format($damaged,2)}}
{{$brand->brand_name}} Total {{number_format($t_sellable,2)}} {{number_format($t_issued,2)}} {{number_format($t_available,2)}} {{number_format($t_damaged,2)}}
@endsection @section('scripts') @endsection