@extends('layouts.app') @section('title', $mode === 'recount' ? __('inventory_count.recount_stock') : __('inventory_count.count_stock')) @section('content') {{ $mode === 'recount' ? __('inventory_count.recount_stock') : __('inventory_count.count_stock') }} {{ $inventory_count->reference_no }} — {{ $inventory_count->name }} {{ optional($inventory_count->location)->name }} @if($inventory_count->blind_count && !$showExpected) — @lang('inventory_count.blind_count') @endif @lang('inventory_count.guarded_snapshot_help') @lang('inventory_count.view') @if($mode === 'recount' && $items->isEmpty()) @lang('inventory_count.no_recounts') @else @component('components.widget', ['class' => 'box-primary']) @lang('lang_v1.search') @if($mode === 'first') @lang('inventory_count.scan_barcode') @lang('inventory_count.scan_help') @endif @csrf @method('PUT') @lang('inventory_count.product') @lang('inventory_count.sku') @if($showExpected)@lang('inventory_count.system_quantity')@endif @if($mode === 'recount')@lang('inventory_count.first_count')@endif {{ $mode === 'recount' ? __('inventory_count.manager_recount') : __('inventory_count.first_count') }} @if($showExpected)@lang('inventory_count.variance_quantity')@endif @lang('inventory_count.serial_numbers') @lang('inventory_count.notes') @foreach($items as $item) @php $productLabel = optional($item->product)->name; if (optional($item->product)->type === 'variable') { $parts = array_filter([ optional(optional($item->variation)->product_variation)->name, optional($item->variation)->name !== 'DUMMY' ? optional($item->variation)->name : null, ]); if ($parts) $productLabel .= ' - '.implode(' - ', $parts); } $quantity = $mode === 'recount' ? $item->recount_quantity : $item->first_count_quantity; $serials = $mode === 'recount' ? $item->recounted_serials : $item->counted_serials; $hasSerials = !empty($item->system_serials) || !empty($serials); @endphp {{ $productLabel }} @if($item->needs_recount)@lang('inventory_count.needs_recount')@endif {{ optional($item->variation)->sub_sku }} @if($showExpected) {{ $item->system_quantity }} @endif @if($mode === 'recount') {{ $item->first_count_quantity }} @endif @if($showExpected) @if($quantity !== null) @php($rowVariance = (float)$quantity - (float)$item->system_quantity) {{ $rowVariance }} @else — @endif @endif {{ old('items.'.$item->id.'.serial_numbers', implode("\n", $serials ?: [])) }} @if(!empty($item->system_serials) && $showExpected) {{ count($item->system_serials) }} expected serial(s) @endif {{ old('items.'.$item->id.'.notes', $item->notes) }} @endforeach @lang('inventory_count.save_counts') {{ $items->links() }} @endcomponent @endif @if($mode === 'first') @lang('inventory_count.submit_warning') @csrf @lang('inventory_count.submit_count') @endif @endsection @section('javascript') @endsection
@lang('inventory_count.scan_help')
@lang('inventory_count.submit_warning')