@extends('layouts.acc_layout') @section('title', '| Cardless EMI Voucher Config') @section('content')
{{ isset($voucherConfig) ? 'Edit' : 'Add' }} Cardless EMI Voucher Config
{!! Form::open([ 'url' => isset($voucherConfig) ? route('cardlessEmiVoucherConfig.update') : route('cardlessEmiVoucherConfig.store'), 'id' => 'voucherForm', 'class' => 'form-horizontal', ]) !!} @if (isset($voucherConfig)) {!! Form::hidden('id', $voucherConfig->id) !!} @endif
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-3 col-form-label fw-bold']) !!}
{!! Form::select('projectId', ['' => 'Select Project'] + $projects, $voucherConfig->projectId ?? null, [ 'class' => 'form-control custom-select2', isset($voucherConfig) ? 'disabled' : '', ]) !!}
{!! Form::label('projectTypeId', 'Project Type:', ['class' => 'col-sm-3 col-form-label fw-bold']) !!}
{!! Form::select('projectTypeId', ['' => 'Select Project Type'] + $projectTypes, $voucherConfig->projectTypeId ?? null, [ 'class' => 'form-control custom-select2', isset($voucherConfig) ? 'disabled' : '', ]) !!}
{!! Form::label('companyId', 'Company:', ['class' => 'col-sm-4 col-form-label fw-bold']) !!}
{!! Form::select('companyId', $companies, $voucherConfig->companyId ?? null, [ 'class' => 'form-control', isset($voucherConfig) ? 'disabled' : '', ]) !!}
{!! Form::label('transactionType', 'Transaction Type:', ['class' => 'col-sm-4 col-form-label fw-bold']) !!}
{!! Form::select('transactionType', $transactionTypes, $voucherConfig->transactionType ?? null, [ 'class' => 'form-control', 'id' => 'transactionType', isset($voucherConfig) ? 'disabled' : '', ]) !!}
{!! Form::label('voucherType', 'Voucher Type:', ['class' => 'col-sm-4 col-form-label fw-bold']) !!}
{!! Form::select('voucherType', $voucherTypes, $voucherConfig->voucherType ?? null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('status', 'Status:', ['class' => 'col-sm-4 col-form-label fw-bold']) !!}
{!! Form::select('status', [1 => 'Active', 0 => 'Inactive'], old('status', $voucherConfig->status ?? ''), ['class' => 'form-control']) !!}
Close
{!! Form::close() !!}
@endsection