{!! Form::open([
'url' => action([\Modules\Hms\Http\Controllers\HmsSettingController::class, 'store']),
'method' => 'post',
'id' => 'hms_setting',
'files' => true,
]) !!}
@php
$settings = json_decode($busines->hms_settings);
@endphp
{!! Form::label('booking_prefix', __('hms::lang.booking_prefix') . '*') !!}
{!! Form::text('booking_prefix', $settings->prefix ?? null, [
'class' => 'form-control',
'required',
'placeholder' => __('hms::lang.booking_prefix'),
]) !!}
@lang('hms::lang.labels_for_id_proof_fields'):
{!! Form::label('id_proof_label_1', __('hms::lang.id_proof_label_1')); !!}
{!! Form::text('id_proof_label_1', $settings->id_proof_label_1 ?? null, ['class' => 'form-control', 'id' => 'id_proof_label_1']); !!}
{!! Form::label('id_proof_label_2', __('hms::lang.id_proof_label_2')); !!}
{!! Form::text('id_proof_label_2', $settings->id_proof_label_2 ?? null, ['class' => 'form-control', 'id' => 'id_proof_label_2']); !!}
{!! Form::label('id_proof_label_3', __('hms::lang.id_proof_label_3')); !!}
{!! Form::text('id_proof_label_3', $settings->id_proof_label_3 ?? null, ['class' => 'form-control', 'id' => 'id_proof_label_3']); !!}
{!! Form::submit(__('messages.submit'), ['class' => 'tw-dw-btn tw-dw-btn-success tw-text-white tw-dw-btn-lg']) !!}
{!! Form::close() !!}
@lang('hms::lang.new_booking')
{!! Form::open([
'url' => action([\Modules\Hms\Http\Controllers\HmsSettingController::class, 'store_email_template']),
'method' => 'post',
]) !!}
{!! Form::close() !!}
@lang('lang_v1.available_tags'):
{{ implode(', ', $tags) }}
{!! Form::label('subject', __('lang_v1.email_subject') . ':') !!}
{!! Form::text('subject', empty($template->subject) ? null : $template->subject, [
'class' => 'form-control',
'placeholder' => __('lang_v1.email_subject'),
'id' => 'subject',
]) !!}
{!! Form::label('cc', 'CC:') !!}
{!! Form::email('cc', empty($template->cc) ? null : $template->cc, [
'class' => 'form-control',
'placeholder' => 'CC',
'id' => 'cc',
]) !!}
{!! Form::label('bcc', 'BCC:') !!}
{!! Form::email('bcc', empty($template->bcc) ? null : $template->bcc, [
'class' => 'form-control',
'placeholder' => 'BCC',
'id' => 'bcc',
]) !!}
{!! Form::label('email_body', __('lang_v1.email_body') . ':') !!}
{!! Form::textarea('email_body', empty($template->email_body) ? null : $template->email_body, [
'class' => 'form-control ckeditor',
'placeholder' => __('lang_v1.email_body'),
'id' => 'email_body',
'rows' => 6,
]) !!}
{!! Form::open([
'url' => action([\Modules\Hms\Http\Controllers\HmsSettingController::class, 'post_pdf']),
'method' => 'post',
'id' => 'post_pdf',
'files' => true,
]) !!}
@php
$settings = json_decode($busines->hms_settings);
@endphp
{!! Form::label('phone', __('contact.contact')) !!}
{!! Form::text('phone', $settings->booking_pdf->phone ?? null, [
'class' => 'form-control',
'id' => 'phone',
'placeholder' => __('contact.contact'),
]) !!}
{!! Form::label('email', __('hms::lang.email')) !!}
{!! Form::email('email', $settings->booking_pdf->email ?? null, [
'class' => 'form-control',
'id' => 'email',
'placeholder' => __('hms::lang.email'),
]) !!}
{!! Form::label('website', __('hms::lang.website')) !!}
{!! Form::text('website', $settings->booking_pdf->website ?? null, [
'class' => 'form-control',
'id' => 'website',
'placeholder' => __('hms::lang.website'),
]) !!}
{!! Form::label('address', __('hms::lang.address')) !!}
{!! Form::textarea('address', $settings->booking_pdf->address ?? null, [
'class' => 'form-control',
'id' => 'address',
'rows' => '4',
'placeholder' => __('hms::lang.address'),
]) !!}
{!! Form::label('footer_text', __('hms::lang.footer_text')) !!}
{!! Form::textarea('footer_text', $settings->booking_pdf->footer_text ?? null, [
'class' => 'form-control',
'placeholder' => __('hms::lang.footer_text'),
]) !!}
{!! Form::submit(__('messages.submit'), ['class' => 'tw-dw-btn tw-dw-btn-success tw-text-white tw-dw-btn-lg']) !!}
{!! Form::close() !!}
{!! __('hms::lang.version_info', ['version' => $module_version]) !!}