@extends('layouts.app') @section('content')
{{ !empty($inventoryContext) ? 'Opening and Closing Stock Report' : 'Shift Stock Report' }}
{{ $shift->shift_no }} {{ $shift->user?->name ?: '-' }} {{ $shift->branch?->name ?: '-' }} {{ $shift->opened_at?->format('Y-m-d H:i') }} to {{ $shift->closed_at?->format('Y-m-d H:i') ?: 'Open' }}
Back
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
Reset
@csrf
@forelse($rows as $row) @php $varianceClass = $row->variance < 0 ? 'variance-negative' : ($row->variance > 0 ? 'variance-positive' : ''); @endphp @empty @endforelse
Barcode Product Category Opening Purchased Supplier Return Sold Sale Return Current Physical Count Variance
{{ $row->barcode ?: '-' }} {{ $row->product_name }} {{ $row->category?->name ?: '-' }} {{ number_format($row->opening_stock, 2) }} {{ number_format($row->purchased_quantity, 2) }} {{ number_format($row->purchase_return_quantity, 2) }} {{ number_format($row->sold_quantity, 2) }} {{ number_format($row->sale_return_quantity, 2) }} {{ number_format($row->expected_closing_stock, 2) }} {{ number_format($row->variance, 2) }}
No products found.
Totals {{ number_format($summary->opening_stock, 2) }} {{ number_format($summary->purchased_quantity, 2) }} {{ number_format($summary->purchase_return_quantity, 2) }} {{ number_format($summary->sold_quantity, 2) }} {{ number_format($summary->sale_return_quantity, 2) }} {{ number_format($summary->expected_closing_stock, 2) }} {{ number_format($summary->counted_closing_stock, 2) }} {{ number_format($summary->variance, 2) }}
@endsection