@extends('layouts.app') @section('content')
Stock Taking
Count physical stock, compare with system stock, and adjust inventory where necessary.
Inventory
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
Products
{{ number_format($summary->products) }}
Current Quantity
{{ number_format($summary->quantity, 2) }}
Stock Value
{{ \App\Models\SystemSetting::formatMoney($summary->stock_value) }}
Low Stock
{{ number_format($summary->low_stock) }}
{{ $activeStockTaking ? 'Active Stock Taking' : 'Start Stock Taking' }}
@if(!$activeStockTaking)
@csrf
@else
No: {{ $activeStockTaking->stock_take_no }}
Branch: {{ $activeStockTaking->branch?->name ?: '-' }}
Staff: {{ $activeStockTaking->user?->name ?: '-' }}
Start: {{ $activeStockTaking->started_at?->format('Y-m-d H:i') }}
@csrf
@endif
@if($activeStockTaking)
Stock Taking Worksheet
Reset
@forelse($items as $item) @php($diff = (float) $item->difference_quantity) @php($updateFormId = 'stockTakingUpdate'.$item->id) @empty @endforelse
Code Product Name Category Available B.Price S.Price Actual Qty Difference Branch Start Date Close Date Staff Update Adjust
{{ $item->barcode ?: '-' }} {{ $item->product_name }} {{ $item->category?->name ?: '-' }} {{ number_format($item->available_quantity, 2) }} {{ \App\Models\SystemSetting::formatMoney($item->buying_price) }} {{ \App\Models\SystemSetting::formatMoney($item->selling_price) }}
@csrf
{{ number_format($diff, 2) }} {{ $activeStockTaking->branch?->name ?: '-' }} {{ $activeStockTaking->started_at?->format('Y-m-d H:i') }} {{ $activeStockTaking->closed_at?->format('Y-m-d H:i') ?: '-' }} {{ $item->updatedBy?->name ?: $activeStockTaking->user?->name }}
@csrf
No stock taking items found.
@if(method_exists($items, 'links'))
{{ $items->links('vendor.pagination.jevapos') }}
@endif
@endif
Stock Taking Report
@forelse($stockTakingReports as $report) @empty @endforelse
Stock Take No Branch Status Start Date Close Date Staff Items Counted Adjusted
{{ $report->stock_take_no }} {{ $report->branch?->name ?: '-' }} {{ ucfirst($report->status) }} {{ $report->started_at?->format('Y-m-d H:i') }} {{ $report->closed_at?->format('Y-m-d H:i') ?: '-' }} {{ $report->user?->name ?: '-' }} {{ $report->items()->count() }} {{ $report->items()->whereNotNull('actual_quantity')->count() }} {{ $report->items()->whereNotNull('adjusted_at')->count() }}
No stock taking reports yet.
@endsection