@extends('layouts.app') @section('title', __('lang_v1.cycle_count') . ' ' . $count->ref_no) @section('content')

@lang('lang_v1.cycle_count') {{ $count->ref_no }} — {{ $count->status }}

@lang('messages.back')
{!! Form::open(['route' => ['supplier.cycle-count.save', $count->id], 'method' => 'post']) !!}
@foreach($lines as $l) @php $var = $l->counted_qty === null ? null : ((float)$l->counted_qty - (float)$l->expected_qty); @endphp @endforeach
@lang('business.product') @lang('lang_v1.expected') @lang('lang_v1.counted') @lang('lang_v1.variance')
{{ $l->product_name }} {{ number_format($l->expected_qty, 2) }} @if($count->status === 'open') @else {{ $l->counted_qty !== null ? number_format($l->counted_qty, 2) : '-' }} @endif {{ $var === null ? '' : number_format($var, 2) }}
@if($count->status === 'open') @endif
{!! Form::close() !!} @if($count->status === 'open') {!! Form::open(['route' => ['supplier.cycle-count.post', $count->id], 'method' => 'post', 'onsubmit' => "return confirm('@lang('lang_v1.confirm_post_count')')"]) !!} @lang('lang_v1.post_count_help') {!! Form::close() !!} @endif
@endsection