{{-- ================= BASIC / BIO-DATA SECTION ================= --}}
Basic / Bio-data Information
{!! Form::label('type', 'Type') !!} {!! Form::select('type', ['individual' => 'Individual', 'corporate' => 'Corporate'], old('type', $taxPayer->type ?? null), [ 'class' => $errors->first('type') ? 'form-control is-invalid' : 'form-control', 'id' => 'type', 'placeholder' => 'Select type' ]) !!} @error('type') {{ $message }} @enderror
{!! Form::label('name', 'Name') !!} {!! Form::text('name', old('name', $taxPayer->name ?? null), ['id' => 'name', 'class' => $errors->first('name') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Enter name']) !!} @error('name') {{ $message }} @enderror
{!! Form::label('phone', 'Phone') !!} {!! Form::text('phone', old('phone', $taxPayer->phone ?? null), ['id' => 'phone', 'class' => $errors->first('phone') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Enter phone']) !!} @error('phone') {{ $message }} @enderror
{!! Form::label('email', 'Email') !!} {!! Form::email('email', old('email', $taxPayer->email ?? null), ['id' => 'email', 'class' => $errors->first('email') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Enter email']) !!} @error('email') {{ $message }} @enderror
{!! Form::label('tin', 'TIN') !!} {!! Form::text('tin', old('tin', $taxPayer->tin ?? null), ['id' => 'tin', 'class' => $errors->first('tin') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Enter TIN']) !!} @error('tin') {{ $message }} @enderror
{!! Form::label('bvn', 'BVN') !!} {!! Form::text('bvn', old('bvn', $taxPayer->bvn ?? null), ['id' => 'bvn', 'class' => $errors->first('bvn') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Enter BVN']) !!} @error('bvn') {{ $message }} @enderror
{!! Form::label('nin', 'NIN') !!} {!! Form::text('nin', old('nin', $taxPayer->nin ?? null), ['id' => 'nin', 'class' => $errors->first('nin') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Enter NIN']) !!} @error('nin') {{ $message }} @enderror
{!! Form::label('lga_id', 'LGA') !!} {!! Form::select('lga_id', $lgas, old('lga_id', $taxPayer->lga_id ?? null), ['class' => $errors->first('lga_id') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Select LGA']) !!} @error('lga_id') {{ $message }} @enderror
{!! Form::label('area_id', 'Area') !!} {!! Form::select('area_id', $areas, old('area_id', $taxPayer->area_id ?? null), ['class' => $errors->first('area_id') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Select Area']) !!} @error('area_id') {{ $message }} @enderror
{!! Form::label('address', 'Residential Address') !!} {!! Form::text('address', old('address', $taxPayer->address ?? null), ['id' => 'address', 'class' => $errors->first('address') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Enter address']) !!} @error('address') {{ $message }} @enderror

Industry / Profession / Category
{!! Form::label('industry_id', 'Industry') !!} {!! Form::select('industry_id', $industries, old('industry_id', $taxPayer->industry_id ?? null), ['class' => $errors->first('industry_id') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Select Industry']) !!} @error('industry_id') {{ $message }} @enderror
{!! Form::label('category_id', 'Category') !!} {!! Form::select( 'category_id', $categories, old('category_id', $taxPayer->category_id ?? null), [ 'id' => 'category_id', 'class' => $errors->first('category_id') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Select Category' ] ) !!}
{!! Form::label('profession_id', 'Profession') !!} {!! Form::select( 'profession_id', [], // IMPORTANT: start empty old('profession_id', $taxPayer->profession_id ?? null), [ 'id' => 'profession_id', 'class' => $errors->first('profession_id') ? 'form-control is-invalid' : 'form-control', 'placeholder' => 'Select Profession' ] ) !!}
{{-- Submit --}}
@push('scripts') @endpush