@extends('backEnd.master') @section('title') @lang('common.edit_receive_details') @endsection @section('mainContent')
@if (isset($editData)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['update-edit-item-receive-data', $editData->id], 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'item-receive-form']) }} @else {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'save-item-receive-data', 'method' => 'POST', 'enctype' => 'multipart/form-data', ]) }} @endif

@if (isset($editData)) @lang('common.edit_receive_details') @else @lang('inventory.receive_details') @endif

@if ($errors->has('expense_head_id')) {{ $errors->first('expense_head_id') }} @endif
@if ($errors->has('bank_id')) {{ $errors->first('bank_id') }} @endif
@if ($errors->has('supplier_id')) {{ $errors->first('supplier_id') }} @endif
@if ($errors->has('store_id')) {{ $errors->first('store_id') }} @endif
@if ($errors->has('reference_no')) {{ $errors->first('reference_no') }} @endif
@if ($errors->has('receive_date')) {{ $errors->first('receive_date') }} @endif

@lang('inventory.item_receive')

@php $i = 0; $j = 0; $total_quantity = 0; $grand_total = 0; @endphp @if (isset($editDataChildren)) @foreach ($editDataChildren as $editDataValue) @php $total_quantity += $editDataValue->quantity; $grand_total += $editDataValue->sub_total; @endphp @endforeach @endif
@lang('inventory.product_name') @lang('inventory.unit_price') @lang('inventory.quantity') @lang('inventory.sub_total') @lang('common.action')
@if ($errors->has('item_id')) {{ $errors->first('item_id') }} @endif
@if ($errors->has('unit_price')) {{ $errors->first('unit_price') }} @endif
@if ($errors->has('quantity')) {{ $errors->first('quantity') }} @endif
@if ($errors->has('sub_total')) {{ $errors->first('sub_total') }} @endif
@lang('exam.result')
paid_status == 'P') checked @endif>
{{ Form::close() }}
@endsection @include('backEnd.partials.date_picker_css_js')