@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')
@if($mode === 'recount' && $items->isEmpty())
@lang('inventory_count.no_recounts')
@else @component('components.widget', ['class' => 'box-primary'])
@if($mode === 'first')

@lang('inventory_count.scan_help')

@endif
@csrf @method('PUT')
@if($showExpected)@endif @if($mode === 'recount')@endif @if($showExpected)@endif @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 @if($showExpected) @endif @if($mode === 'recount') @endif @if($showExpected) @endif @endforeach
@lang('inventory_count.product') @lang('inventory_count.sku')@lang('inventory_count.system_quantity')@lang('inventory_count.first_count'){{ $mode === 'recount' ? __('inventory_count.manager_recount') : __('inventory_count.first_count') }}@lang('inventory_count.variance_quantity')@lang('inventory_count.serial_numbers') @lang('inventory_count.notes')
{{ $productLabel }} @if($item->needs_recount)
@lang('inventory_count.needs_recount')@endif
{{ optional($item->variation)->sub_sku }}{{ $item->system_quantity }}{{ $item->first_count_quantity }} @if($quantity !== null) @php($rowVariance = (float)$quantity - (float)$item->system_quantity) {{ $rowVariance }} @else — @endif @if(!empty($item->system_serials) && $showExpected) {{ count($item->system_serials) }} expected serial(s) @endif
{{ $items->links() }}
@endcomponent @endif @if($mode === 'first')

@lang('inventory_count.submit_warning')

@csrf
@endif
@endsection @section('javascript') @endsection