Files
Global-Jain/resources/views/backend/sant/sant-chaturmas/partials/_form.blade.php
2025-11-05 10:37:10 +05:30

89 lines
5.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="card-body">
<div class="form-group row">
<div class="col-md-6">
<label>{{ __('label.chaturmas_year') }}</label>
{{ Form::select('chaturmas_date_id', $years, (isset($chaturma->chaturmas_date_id) && !empty($chaturma->chaturmas_date_id)) ? $chaturma->chaturmas_date_id : null,['class' => $errors->has('chaturmas_date_id') ? 'form-control selectpicker is-invalid year_id' : 'form-control selectpicker','title' => __('placeholder.chaturmas_year'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
@error('chaturmas_date_id')
<div class="invalid-feedback">{{ $message }}</div>
@enderror
</div>
<div class="col-md-6">
<label>{{ __('label.chaturmas_place') }} <span class="text-danger">*</span></label>
{{ Form::text('place',$chaturma->place ?? $sanghAddress,['class' => $errors->has('place') ? 'form-control is-invalid' : 'form-control', 'id' => 'place', 'placeholder' => __('placeholder.chaturmas_place')]) }}
@error('place')
<div class="invalid-feedback">{{ $message }}</div>
@enderror
</div>
<div class="col-md-6 mt-3" id="latitudeArea" hidden>
<label>{{ __('label.latitude') }}</label>
<input type="text" id="latitude_show" name="latitude_show" class="form-control" disabled>
</div>
<input type="hidden" id="latitude" name="latitude" class="form-control">
<div class="col-md-6 mt-3" id="longtitudeArea" hidden>
<label>{{ __('label.longitude') }}</label>
<input type="text" name="longitude_show" id="longitude_show" class="form-control" disabled>
</div>
<input type="hidden" name="longitude" id="longitude" class="form-control">
</div>
<div class="form-group row">
<label class="col-2 col-form-label">{{ __('label.is_approved') }}</label>
<div class="col-3">
<span class="switch switch-outline switch-icon switch-primary">
<label>
{{ Form::checkbox('is_approved', $chaturma->is_approved ?? 1, isset($chaturma->is_approved) && $chaturma->is_approved == 1 ? 'checked' : '', ['class' => 'approve-chaturmas']) }}
<span></span>
</label>
</span>
</div>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" value="save" class="btn btn-primary mr-2">
@if(\Request::route()->getName() == 'admin.sant.edit')
{{ __('buttons.update') }}
@else
{{ __('buttons.save') }}
@endif
</button>
<a href="{{ route('admin.sant.chaturmas.index', $sant->id) }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
</div>
<div class="approve-modal" style="display: none;">
<div class="swal2-container swal2-center swal2-backdrop-show" style="overflow-y: auto;">
<div aria-labelledby="swal2-title" aria-describedby="swal2-content"
class="swal2-popup swal2-modal swal2-icon-warning swal2-show" tabindex="-1" role="dialog" aria-live="assertive"
aria-modal="true" style="display: flex;">
<div class="swal2-header">
<ul class="swal2-progress-steps" style="display: none;"></ul>
<div class="swal2-icon swal2-error" style="display: none;"></div>
<div class="swal2-icon swal2-question" style="display: none;"></div>
<div class="swal2-icon swal2-warning swal2-icon-show" style="display: flex;">
<div class="swal2-icon-content">!</div>
</div>
<div class="swal2-icon swal2-info" style="display: none;"></div>
<div class="swal2-icon swal2-success" style="display: none;"></div><img class="swal2-image"
style="display: none;">
<h2 class="swal2-title" id="swal2-title" style="display: flex;">Are you sure?</h2>
<button type="button" class="swal2-close" aria-label="Close this dialog" style="display: none;">×</button>
</div>
<div class="mt-3" style="text-align: center;">
<p>This will also approve chaturmas of following sants: <b>{!! isset($santName) ? implode(",<br>",$santName) : null !!}</b></p>
</div>
<div class="swal2-actions">
<button type="button" class="swal2-cancel swal2-styled close-modal" aria-label="" style="display: inline-block;">No, cancel!</button>
<button type="button" class="swal2-confirm swal2-styled agree" aria-label="" style="display: inline-block; border-left-color: rgb(48, 133, 214); border-right-color: rgb(48, 133, 214);">
Yes, approve it!</button>
</div>
<div class="swal2-footer" style="display: none;"></div>
<div class="swal2-timer-progress-bar-container">
<div class="swal2-timer-progress-bar" style="display: none;"></div>
</div>
</div>
</div>
</div>