@extends('layouts.app') @section('title', $type === 'warehouse' ? __('Warehouse Stock') : __('POS Stock')) @section('content')
{{ __('Auto-refresh') }} m {{ __('Synced') }}:
@if (! $store)
{{ __('No store of this type configured.') }}
@else @if ($stores->count() > 1)
{{ __('Store') }}: @foreach ($stores as $option) {{ $option->name }} @endforeach
@endif
{{ $store->name }} ({{ $store->code }})
@forelse ($stocks as $stock) @empty @endforelse
{{ __('Product') }} {{ __('Category') }} {{ __('Batch') }} {{ __('Expiration') }} {{ __('Quantity') }}
{{ $stock->product?->name }} {{ $stock->product?->category?->name ?? '—' }} {{ $stock->batch?->batch_number }} {{ $stock->batch?->expiration_date?->format('d/m/Y') ?? '—' }} @if ($stock->batch?->isExpired())Exp@endif {{ $stock->quantity }}
{{ __('No stock records.') }}
{{ $stocks->links() }}
@endif @push('scripts') @endpush @endsection