@extends('layouts.app') @section('main-content')

Stock Closing

Stock Closing [{{ date('M Y') }}]
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@if (!empty($inventories)) @php $i=1 @endphp @forelse($inventories as $stock) @if($stock->onhand > 0) @else @endif @empty @endforelse @else @endif
# Product Name Category Location Unit Price Balance Total
{{ $i++ }} {{ $stock->name}} {{ $stock->description }} {{ $stock->category_name}} {{ $stock->cat_desc }} {{ $stock->location }} {{ $stock->location_desc }} RM {{ number_format($stock->cost, 2) }} {{ $stock->onhand }} RM {{ number_format($stock->total, 2) }}
No record found
@endsection @section('script') @endsection('script')