@extends('backend.layout.main') @section('content') @if(session()->has('not_permitted'))
{{ session()->get('not_permitted') }}
@endif

{{trans('file.Update Purchase')}}

{{trans('file.The field labels marked with * are required input fields')}}.

{!! Form::open(['route' => ['purchases.update', $lims_purchase_data->id], 'method' => 'put', 'files' => true, 'id' => 'purchase-form']) !!}

{{ $lims_purchase_data->reference_no }}

@if($errors->has('extension')) {{ $errors->first('extension') }} @endif
@foreach($custom_fields as $field) @if(!$field->is_admin || \Auth::user()->role_id == 1)
@if($field->type == 'text') is_required){{'required'}}@endif> @elseif($field->type == 'number') is_required){{'required'}}@endif> @elseif($field->type == 'textarea') @elseif($field->type == 'checkbox')
@foreach($option_values as $value)   @endforeach @elseif($field->type == 'radio_button')
@foreach($option_values as $value)   @endforeach @elseif($field->type == 'select') @elseif($field->type == 'multi_select') @elseif($field->type == 'date_picker') is_required){{'required'}}@endif> @endif
@endif @endforeach
{{trans('file.Order Table')}} *
@foreach($lims_product_purchase_data as $product_purchase)
{{trans('file.name')}} {{trans('file.Code')}} {{trans('file.Quantity')}} {{trans('file.Recieved')}} {{trans('file.Batch No')}} {{trans('file.Expired Date')}} {{trans('file.Net Unit Cost')}} {{trans('file.Discount')}} {{trans('file.Tax')}} {{trans('file.Subtotal')}}