{!! Form::open(['route' => ['admin.contracts.update-program', ['contract' => $contract]], 'method' => 'PUT']) !!}
{{-- program --}}
{{ Form::label('old_program_id', __('Old Program'), ['class' => 'col-form-label']) }} {!! Form::select('old_program_id', [$contract->program->name], null, [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-remote' => route('resource-select', ['Program']), 'data-placeholder' => __('Old Program'), 'disabled' => 'true' ]) !!}
{{-- program --}}
{{ Form::label('program_id', __('New Program'), ['class' => 'col-form-label']) }} {!! Form::select('program_id', [], null, [ 'class' => 'form-select dependent-select', 'data-kt-select2' => 'true', 'data-remote' => route('resource-select', ['Program', 'except_uuid' => $contract->program->uuid]), 'id' => 'contract-program-selected-id', 'data-placeholder' => __('Select Program'), 'data-allow-clear' => 'true' ]) !!}
@if($has_paid_main_invoice) {{-- Main Invoice Account --}}
{{ Form::label('main_invoice_account', __('Account To Pay main Invoice'), ['class' => 'col-form-label']) }} {!! Form::select('main_invoice_account', [], null, [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-remote' => route('resource-select', [ 'AccountBalance', 'dependent' => 'has_program_uuid', 'has_permission' => '1' ]), 'data-dependent_id' => 'contract-program-selected-id', 'data-placeholder' => __('Select Account'), 'data-allow-clear' => 'true' ]) !!}
@endif @if($has_paid_rc) {{-- RC Account --}}
{{ Form::label('rc_invoice_account', __('Account To Pay Reverse Charge'), ['class' => 'col-form-label']) }} {!! Form::select('rc_invoice_account', [], null, [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-remote' => route('resource-select', [ 'AccountBalance', 'dependent' => 'has_program_uuid', 'has_permission' => '2' ]), 'data-dependent_id' => 'contract-program-selected-id', 'data-placeholder' => __('Select Account'), 'data-allow-clear' => 'true' ]) !!}
@endif @if($has_paid_wt) {{-- Wt Account --}}
{{ Form::label('wt_invoice_account', __('Account To Pay Withholding Tax'), ['class' => 'col-form-label']) }} {!! Form::select('wt_invoice_account', [], null, [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-remote' => route('resource-select', [ 'AccountBalance', 'dependent' => 'has_program_uuid', 'has_permission' => '3' ]), 'data-dependent_id' => 'contract-program-selected-id', 'data-placeholder' => __('Select Account'), 'data-allow-clear' => 'true' ]) !!}
@endif @if($has_paid_retention) {{-- Retention Account --}}
{{ Form::label('retention_payment_account', __('Account To Pay Retention'), ['class' => 'col-form-label']) }} {!! Form::select('retention_payment_account', [], null, [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-remote' => route('resource-select', [ 'AccountBalance', 'dependent' => 'has_program_uuid', 'has_permission' => '4' ]), 'data-dependent_id' => 'contract-program-selected-id', 'data-placeholder' => __('Select Account'), 'data-allow-clear' => 'true' ]) !!}
@endif
{!! Form::close() !!}