@extends('layout.app') @section('title', 'Edit Party') @push('header_script') @endpush @section('content')
{!! Form::open([ 'route' => ['common-party.update', $commonPartyData->id], 'onsubmit' => 'BtnSubmit.disabled = true', 'class' => 'row g-3 needs-validation', 'method' => 'put', 'autocomplete' => 'off', ]) !!}
{!! Form::select('account_group_id', ['' => '--Select--'] + $accountGroup, $commonPartyData->account_group_id, [ 'class' => 'form-control select2', 'id' => 'account_group_id', 'required', ]) !!}
{{ $errors->first('account_group_id') }}
{{ $errors->first('party_name') }}
{{ $errors->first('mobile_no') }}
{{ $errors->first('email') }}
{{ $errors->first('address') }}
{{ $errors->first('country') }}
{!! Form::select('state_id', ['' => '--Select--'] + $state, $commonPartyData->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'], $commonPartyData->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' || $commonPartyData->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