@extends('layouts.admin') @section('title', 'Count Stock') @section('content') @php $select = 'h-11 px-3 rounded-xl border border-slate-300 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-sm outline-none focus:ring-2 ring-brand-500'; @endphp {{-- Breadcrumb --}}
Products/Count stock
{{-- Success message --}} @if (session('success'))
{{ session('success') }}
@endif {{-- Errors --}} @if ($errors->any())
@endif {{-- How it works --}}
Shelf theke product gune Counted ghore sonkha likho (kg/meter hole dosomik o dewa jabe, jemon 2.5). Je product gune nai oi ghor khali rakho, oigulor stock change hobe na. Save Count dile system stock tomar gona sonkha diye replace hobe.
{{-- Filter --}}
@if (request()->hasAny(['q', 'category', 'brand'])) Reset @endif
{{-- Count form --}}
@csrf
@forelse ($products as $p) @php $unit = $p->unit?->short_name; @endphp @empty @endforelse
Product Code Category System Stock Counted Difference
@if ($p->image) {{ $p->name }} @else @endif
{{ $p->name }}
{{ $p->code }} {{ $p->category->name }} {{ $p->stock_qty }} {{ $unit }}
{{ $unit }}
—
Kono product paoa jayni. Notun product add koro
@if ($products->count())
@endif
{{-- History --}}
Recent stock counts
@forelse ($history as $h) @php $net = round((float) $h->items_sum_difference, 3); @endphp @empty @endforelse
Reference Date Note Products Net difference
SC-{{ str_pad($h->id, 4, '0', STR_PAD_LEFT) }} {{ $h->created_at->format('d M Y, h:i A') }} {{ $h->note ?: '—' }} {{ $h->items_count }} {{ $net > 0 ? '+' . $net : $net }}
Ekhono kono stock count kora hoyni.
@endsection @push('scripts') @endpush