@extends('layout.app') @section('title','Edit Customer') @push('header_script') @endpush @section('content')
{!! Form::open(['route' => ['customer.update',$customerData->id], 'onsubmit'=>'BtnSubmit.disabled = true', 'class'=>'row g-3 needs-validation', 'method' => 'put', 'autocomplete'=>'off']) !!}
{{$errors->first('customer_name')}}
{{$errors->first('mobile_no')}}
{{$errors->first('email')}}
{{$errors->first('address')}}
{{$errors->first('country')}}
{!! Form::select('state_id', [''=>'--Select--',]+$state, $customerData->state_id, ['class'=>'form-control select2','id'=>'state_id','required']) !!}
{{$errors->first('state_id')}}
{{$errors->first('city')}}
{{$errors->first('pin_code')}}
{!! Form::select('register_type', ['Regular'=>'Regular','Composition'=>'Composition','Unregistered'=>'Unregistered'], $customerData->register_type, ['class'=>'form-control','id'=>'register_type','required']) !!}
{{$errors->first('register_type')}}
{{$errors->first('gst_no')}}
{{$errors->first('pan_no')}}
{{$errors->first('opening_balance')}}
{{$errors->first('starting_date')}}
@if(\App\Http\Helpers\CommonHelper::checkGeneralSetting('maintain_balance') == 'yes' || $customerData->maintain_bal_bill == 'yes')
maintain_bal_bill == 'yes')? 'checked': ''}} value="yes">
{{$errors->first('maintain_bal_bill')}}
@endif
receiving_payment_pending == 'receive')? 'checked': ''}} id="receive">
receiving_payment_pending == 'payment')? 'checked': ''}} id="payment">
{!! Form::close() !!}
@endsection @push('footer_script') @endpush