@include('front.components.merchant.page-title')

Agent Details​

{!! html()->form('POST', route('merchant.application.submit'))->attributes(['id' => 'merchant_application_form', 'data-parsley-validate' => true])->open() !!} @csrf
{!! html()->text( 'agent_full_name', old('agent_full_name') ? old('agent_full_name') : (isset($data->agent->full_name) ? $data->agent->full_name : $auth_data->full_name), )->class('form-control')->placeholder('Enter your name')->attribute('autocomplete', 'off')->attribute('readonly', !$is_auth_user ? true : (!$is_admin ? true : true)) !!} @if ($errors->has('agent_full_name')) {{ $errors->first('agent_full_name') }} @endif
{!! html()->email( 'agent_email', old('agent_email') ? old('agent_email') : (isset($data->agent->email) ? $data->agent->email : $auth_data->email), )->class('form-control')->placeholder('Enter your email')->attribute('autocomplete', 'off')->attribute('readonly', !$is_auth_user ? true : (!$is_admin ? true : true)) !!} @if ($errors->has('agent_email')) {{ $errors->first('agent_email') }} @endif
{!! html()->text( 'sales_id', old('sales_id') ? old('sales_id') : (isset($data->sales_id) ? $data->sales_id : (isset($auth_data->sales_id) ? $auth_data->sales_id : '')), )->class('form-control')->attribute('readonly', true)->placeholder('*Auto-generated after creation') !!}
@php $tooltips = [ 1 => 'Complete and submit the full application together with the merchant.', 2 => 'Finalize pricing, product selection, and merchant details before sending the application for the merchant to complete and submit.', ]; @endphp
@foreach ($application_method_types as $key => $method)
{!! html()->radio( 'application_method_type_id', old('application_method_type_id') ? old('application_method_type_id') == $key : (isset($data->application_method_type_id) ? $data->application_method_type_id == $key : $loop->first), $key, )->class('form-check-input')->id('application_method_' . $key) !!}
@endforeach
@if ( !isset($data) || (isset($data) && $data->application_method_type_id == 1) || (isset($data) && $data->application_method_type_id == 2 && isset($location) && $location->status < 4)) {!! html()->button()->type('submit')->class('btn btn-primary btn-lg w-md')->id('submit-btn')->html('Next ') !!} @else View Application {{-- Previous --}} @endif
{!! html()->form()->close() !!}