521 lines
27 KiB
PHP
521 lines
27 KiB
PHP
|
|
<div class="card-body">
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_dharma_name') }} </label>
|
||
|
|
{{ Form::select('dharma_id',$dharmaName,(isset($sant->dharma_id) && !empty($sant->dharma_id)) ? $sant->dharma_id : null,['id' => 'dharma', 'class' => $errors->has('dharma_id') ? 'form-control selectpicker is-invalid dharma_id' : 'form-control selectpicker','title' => __('placeholder.sant_dharma_name'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||
|
|
@error('dharma_id')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="dharmaCheckbox" name="dharmaCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="dharmaCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->dharm->name ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_sampraday_name') }} </label>
|
||
|
|
{{ Form::select('sampraday_id',$sampradayName,(isset($sant->sampraday_id) && !empty($sant->sampraday_id)) ? $sant->sampraday_id : null,['id' => 'sampradaies', 'class' => $errors->has('sampraday_id') ? 'form-control selectpicker is-invalid sampraday_id' : 'form-control selectpicker','title' => __('placeholder.sant_sampraday_name'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||
|
|
@error('sampraday_id')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="sampradayCheckbox" name="sampradayCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="sampradayCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->sampraday->name ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_form_name') }} <span class="text-danger">*</span></label>
|
||
|
|
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.sant_name')]) }}
|
||
|
|
@error('name')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="nameCheckbox" name="nameCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="nameCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->name ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_honor') }} </label>
|
||
|
|
<input id="honor" class="form-control tagify" name='honor' placeholder='type...'
|
||
|
|
value='{{old('honor',isset($sant->honor) && !empty($sant->honor) ? implode(', ', $sant->honor) : '')}}'/>
|
||
|
|
<div class="mt-3">
|
||
|
|
<a href="javascript:;" id="honor_remove" class="btn btn-sm btn-light-primary font-weight-bold">Remove
|
||
|
|
honors</a>
|
||
|
|
</div>
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ isset($santLive->honor) ? implode(',', $santLive->honor) : "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_birth_date') }} </label>
|
||
|
|
<div class="input-group date">
|
||
|
|
{{ Form::text('birth_date',null,['autocomplete' => 'off','class' => $errors->has('birth_date') ? 'form-control datepicker is-invalid' : 'form-control datepicker','placeholder' => __('placeholder.sant_birth_date')]) }}
|
||
|
|
<div class="input-group-append">
|
||
|
|
<span class="input-group-text">
|
||
|
|
<i class="fas fa-calendar-alt"></i>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@error('birth_date')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="birthDateCheckbox" name="birthDateCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="birthDateCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->birth_date ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_gender') }}</label>
|
||
|
|
{{ Form::select('gender',trans('sant.gender'),(isset($sant->gender) && !empty($sant->gender)) ? $sant->gender : null,['class' => $errors->has('gender') ? 'form-control selectpicker is-invalid gender' : 'form-control selectpicker','title' => __('placeholder.sant_gender'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||
|
|
@error('gender')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="genderCheckbox" name="genderCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="genderCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
@if (!empty($santLive->gender) && $santLive->gender == 1)
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">Maharaj Saheb</font> </label>
|
||
|
|
@elseif (!empty($santLive->gender) && $santLive->gender == 2)
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">Mahasati Ji</font> </label>
|
||
|
|
@else
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">-</font> </label>
|
||
|
|
@endif
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_diksha_date') }} </label>
|
||
|
|
<div class="input-group date">
|
||
|
|
{{ Form::text('diksha_date',null,['autocomplete' => 'off','class' => $errors->has('diksha_date') ? 'form-control datepicker is-invalid' : 'form-control datepicker','placeholder' => __('placeholder.sant_diksha_date')]) }}
|
||
|
|
<div class="input-group-append">
|
||
|
|
<span class="input-group-text">
|
||
|
|
<i class="fas fa-calendar-alt"></i>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@error('diksha_date')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="dikshaDateCheckbox" name="dikshaDateCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="dikshaDateCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->diksha_date ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_diksha_place') }} </label>
|
||
|
|
{{ Form::text('diksha_place',null,['class' => $errors->has('diksha_place') ? 'form-control is-invalid' : 'form-control', 'id' => 'diksha_place','placeholder' => __('placeholder.sant_diksha_place')]) }}
|
||
|
|
@error('diksha_place')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="dikshaPlaceCheckbox" name="dikshaPlaceCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="dikshaPlaceCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->diksha_place ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="form-group row">
|
||
|
|
<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="diksha_place_latitude" name="diksha_place_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="diksha_place_longitude" id="diksha_place_longitude" class="form-control">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_guru') }}</label>
|
||
|
|
{{ Form::select('guru_id',$guruName,(isset($sant->guru_id) && !empty($sant->guru_id)) ? $sant->guru_id : null,['class' => $errors->has('guru_id') ? 'form-control selectpicker is-invalid guru_id' : 'form-control selectpicker','title' => __('placeholder.sant_guru'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||
|
|
@error('guru_id')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="guruCheckbox" name="guruCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="guruCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->guru->name ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_father_name') }} </label>
|
||
|
|
{{ Form::text('father_name',null,['class' => $errors->has('father_name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.sant_father_name')]) }}
|
||
|
|
@error('father_name')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="fatherCheckbox" name="fatherCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="fatherCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->father_name ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_mother_name') }} </label>
|
||
|
|
{{ Form::text('mother_name',null,['class' => $errors->has('mother_name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.sant_mother_name')]) }}
|
||
|
|
@error('mother_name')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="motherCheckbox" name="motherCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="motherCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->mother_name ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
{{-- <div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_profile_verified_at') }} </label>
|
||
|
|
<div class="input-group date">
|
||
|
|
{{ Form::text('profile_verified_at',null,['autocomplete' => 'off','class' => $errors->has('profile_verified_at') ? 'form-control datepicker is-invalid' : 'form-control datepicker','placeholder' => __('placeholder.sant_profile_verified_at')]) }}
|
||
|
|
<div class="input-group-append">
|
||
|
|
<span class="input-group-text">
|
||
|
|
<i class="fas fa-calendar-alt"></i>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@error('profile_verified_at')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
</div> --}}
|
||
|
|
|
||
|
|
<div class="col-md-12">
|
||
|
|
<label>{{ __('label.sant_about') }}</label>
|
||
|
|
{{ Form::textarea('about',null,['class' => $errors->has('about') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.sant_about')]) }}
|
||
|
|
@error('about')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="aboutCheckbox" name="aboutCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="aboutCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
<label class="mt-2">Current Data: <font color="blue">{{ $santLive->about ?? "-" }} </font> </label>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{{-- <div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_qualification') }} </label>
|
||
|
|
{{ Form::text('qualification',null,['class' => $errors->has('qualification') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.sant_qualification')]) }}
|
||
|
|
@error('qualification')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
</div> --}}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.sant_avatar') }} </label>
|
||
|
|
<div class="custom-file">
|
||
|
|
<input type="file" name="avatar"
|
||
|
|
class="custom-file-input avatar-image @if($errors->has('avatar')) is-invalid @endif"
|
||
|
|
id="customFile"/>
|
||
|
|
<label id="avatar-custom-file-label" class="custom-file-label"
|
||
|
|
for="customFile">{{ __('label.choose_image') }}</label>
|
||
|
|
<span class="form-text text-inverse-muted">{{ __('label.image_type') }}</span>
|
||
|
|
@error('avatar')
|
||
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
||
|
|
@enderror
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<div class="form-check">
|
||
|
|
<input class="form-check-input mt-2" type="checkbox" value="1" id="avatarCheckbox" name="avatarCheckbox" onchange="document.getElementById('send_back').disabled = !this.checked;">
|
||
|
|
<label class="form-check-label mt-1" for="avatarCheckbox">
|
||
|
|
<font color="#EC7063">
|
||
|
|
{{ __('label.need_to_update') }}
|
||
|
|
</font>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit')
|
||
|
|
<div class="col-lg-9 col-xl-6">
|
||
|
|
<div class="form-group row">
|
||
|
|
<div class="col-md-3">
|
||
|
|
<label>{{ __('label.sant_created_by') }} </label>
|
||
|
|
<div class="mt-2">{{ $sant->createdBy->name ?? '-' }}</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="col-md-3">
|
||
|
|
<label>{{ __('label.sant_updated_by') }} </label>
|
||
|
|
<div class="mt-2">{{ $sant->updatedBy->name ?? '-' }}</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label>{{ __('label.thana_updated_by') }} </label>
|
||
|
|
<div class="mt-2">{{ isset($thana->updatedBy) ? ($thana->updatedBy->name) : '-' }}</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
|
||
|
|
@if(\Request::route()->getName() != 'admin.sant.edit')
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label class="col-5 col-form-label">{{ __('label.status') }}</label>
|
||
|
|
<div class="col-3">
|
||
|
|
<span class="switch switch-outline switch-icon switch-primary">
|
||
|
|
<label>
|
||
|
|
{{ Form::checkbox('status',$sant->status ?? null,isset($sant->status) && $sant->status == 2 ? 'checked' : '') }}
|
||
|
|
<span></span>
|
||
|
|
</label>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="form-group row avatar-image-preview-div"
|
||
|
|
@if(isset($sant->avatar) && !empty($sant->avatar)) style="display: flex"
|
||
|
|
@else style="display: none" @endif>
|
||
|
|
<!--begin::Image-->
|
||
|
|
<div class="col-lg-9 col-xl-6">
|
||
|
|
<div class="image-input image-input-outline">
|
||
|
|
<img
|
||
|
|
src="{{(isset($sant) && !empty($sant->avatar)) ? $sant->avatar : ''}}"
|
||
|
|
class="image-input-wrapper avatar-image-preview">
|
||
|
|
<label
|
||
|
|
class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow avatar-image-remove-button"
|
||
|
|
data-action="change" data-toggle="tooltip" title="" data-original-title="Remove Image" id="avatar-image-remove-button">
|
||
|
|
<i class="fa fa-trash icon-sm text-muted"></i>
|
||
|
|
</label>
|
||
|
|
<input type="hidden" name="is_remove_avatar_image" class="is_remove_avatar_image" value="
|
||
|
|
{{ isset($sant->avatar) && !empty($sant->avatar) ? 0 : 1 }}">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{{-- <div class="form-group row avatar-image-preview-div"
|
||
|
|
@if(isset($santLive->avatar) && !empty($santLive->avatar)) style="display: flex"
|
||
|
|
@else style="display: none" @endif>
|
||
|
|
<!--begin::Image-->
|
||
|
|
<div class="col-lg-9 col-xl-6">
|
||
|
|
<div class="image-input image-input-outline">
|
||
|
|
<img
|
||
|
|
src="{{(isset($santLive) && !empty($santLive->avatar)) ? $sant->avatar : ''}}"
|
||
|
|
class="image-input-wrapper avatar-image-preview">
|
||
|
|
<label
|
||
|
|
class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow avatar-image-remove-button"
|
||
|
|
data-action="change" data-toggle="tooltip" title="" data-original-title="Remove Image" id="avatar-image-remove-button">
|
||
|
|
<i class="fa fa-trash icon-sm text-muted"></i>
|
||
|
|
</label>
|
||
|
|
<input type="hidden" name="is_remove_avatar_image" class="is_remove_avatar_image" value="
|
||
|
|
{{ isset($santLive->avatar) && !empty($santLive->avatar) ? 0 : 1 }}">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div> --}}
|
||
|
|
|
||
|
|
<div class="form-group row">
|
||
|
|
@if (isset($thanaMembers))
|
||
|
|
@forelse($thanaMembers as $thanaMember)
|
||
|
|
<!--begin::Image-->
|
||
|
|
<div class="col-lg-3 col-xl-3">
|
||
|
|
<div class="col-lg-4 col-xl-4">
|
||
|
|
<div class="image-input image-input-outline">
|
||
|
|
<img
|
||
|
|
src="{{(isset($thanaMember) && !empty($thanaMember->avatar)) ? $thanaMember->avatar : ''}}"
|
||
|
|
class="image-input-wrapper avatar-image">
|
||
|
|
<label
|
||
|
|
class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow avatar-image-remove-button"
|
||
|
|
data-action="change" data-toggle="tooltip" title="" data-original-title="Remove Thana" id="thana-remove-button-{{$thanaMember->pivot->id}}">
|
||
|
|
<a href="{{route('admin.sant.remove-thana',['santID' => $thanaMember->id,'id' => $thanaMember->pivot->id])}}"><i class="fa fa-trash icon-sm text-muted"></i></a>
|
||
|
|
</label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="col-md-6">
|
||
|
|
<label class="col-12 col-form-label">{{ $thanaMember->name }}</label>
|
||
|
|
<label class="col-12 col-form-label">Approve</label>
|
||
|
|
<div class="col-3">
|
||
|
|
<span class="switch switch-outline switch-icon switch-primary">
|
||
|
|
<label>
|
||
|
|
{{ Form::checkbox('status['.$thanaMember->pivot->id.']',$thanaMember->pivot->is_approved ?? null,isset($thanaMember->pivot->is_approved) && $thanaMember->pivot->is_approved == 1 ? 'checked' : '') }}
|
||
|
|
<span></span>
|
||
|
|
</label>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@empty
|
||
|
|
{{-- <p>No thana</p> --}}
|
||
|
|
@endforelse
|
||
|
|
@endif
|
||
|
|
</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.approve') }}
|
||
|
|
@else
|
||
|
|
{{ __('buttons.save') }}
|
||
|
|
@endif
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<!-- When sant profile is in reivew -->
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status == 2)
|
||
|
|
<button type="button" name="send_back" id="send_back" data-target="#sendBackModal" value="save" class="btn btn-warning mr-2 trigger-btn" data-toggle="modal" disabled>
|
||
|
|
{{ __('buttons.send_back') }}
|
||
|
|
</button>
|
||
|
|
{{-- <input type="checkbox" onchange="document.getElementById('sendNewSms').disabled = !this.checked;" /> --}}
|
||
|
|
|
||
|
|
<button type="button" name="reject" data-target="#rejectModal" value="save" class="btn btn-danger mr-2 trigger-btn" data-toggle="modal">
|
||
|
|
{{ __('buttons.reject') }}
|
||
|
|
</button>
|
||
|
|
@endif
|
||
|
|
|
||
|
|
<!-- When sant profile is not in reivew -->
|
||
|
|
@if(\Request::route()->getName() == 'admin.sant.edit' && $sant->verification_status != 2)
|
||
|
|
<button type="button" name="send_back" id="send_back" data-target="#sendBackModal" value="save" class="btn btn-warning mr-2 trigger-btn" data-toggle="modal">
|
||
|
|
{{ __('buttons.send_back') }}
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<button type="button" name="reject" data-target="#rejectModal" value="save" class="btn btn-danger mr-2 trigger-btn" data-toggle="modal">
|
||
|
|
{{ __('buttons.reject') }}
|
||
|
|
</button>
|
||
|
|
@endif
|
||
|
|
|
||
|
|
<a href="{{ route('admin.sant.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Send back Modal -->
|
||
|
|
<div class="modal fade" id="sendBackModal" tabindex="-1" aria-labelledby="sendBackModalLabel" aria-hidden="true">
|
||
|
|
<div class="modal-dialog modal-dialog-centered">
|
||
|
|
<div class="modal-content">
|
||
|
|
<div class="modal-header">
|
||
|
|
<h5 class="modal-title" id="sendBackModalLabel">Reason For Send Back</h5>
|
||
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
|
|
<span aria-hidden="true">×</span>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
<div class="modal-body">
|
||
|
|
<textarea class="form-control" name="send_back_desc" rows="6" required></textarea>
|
||
|
|
</div>
|
||
|
|
<div class="modal-footer">
|
||
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||
|
|
<a href="#">
|
||
|
|
<button type="submit" class="btn btn-primary" name="modalBtn" value="send_back">Submit</button></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Reject Modal -->
|
||
|
|
<div class="modal fade" id="rejectModal" tabindex="-1" aria-labelledby="rejectModalLabel" aria-hidden="true">
|
||
|
|
<div class="modal-dialog modal-dialog-centered">
|
||
|
|
<div class="modal-content">
|
||
|
|
<div class="modal-header">
|
||
|
|
<h5 class="modal-title" id="rejectModalLabel">Reason For Reject</h5>
|
||
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||
|
|
<span aria-hidden="true">×</span>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
<div class="modal-body">
|
||
|
|
<textarea class="form-control" name="reject_desc" rows="6" required></textarea>
|
||
|
|
</div>
|
||
|
|
<div class="modal-footer">
|
||
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
||
|
|
<a href="#">
|
||
|
|
<button type="submit" class="btn btn-primary" name="modalBtn" value="reject">Submit</button></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|