api code global jain
This commit is contained in:
164
resources/views/backend/chaturmas-date/create.blade.php
Normal file
164
resources/views/backend/chaturmas-date/create.blade.php
Normal file
@@ -0,0 +1,164 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_chaturmas_date_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@push('after-styles')
|
||||
@endpush
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="subheader py-2 py-lg-4 subheader-solid" id="kt_subheader">
|
||||
<div class="container-fluid d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap">
|
||||
<!--begin::Info-->
|
||||
<div class="d-flex align-items-center flex-wrap mr-1">
|
||||
<!--begin::Page Heading-->
|
||||
<div class="d-flex align-items-baseline mr-5">
|
||||
<!--begin::Page Title-->
|
||||
<!--end::Page Title-->
|
||||
<!--begin::Breadcrumb-->
|
||||
<ul class="breadcrumb breadcrumb-transparent breadcrumb-dot font-weight-bold p-0 my-2 font-size-sm">
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.dashboard') }}" class="text-muted">{{ __('breadcrumb.dashboard') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.chaturmas-date.index') }}" class="text-muted">{{ __('breadcrumb.chaturmas_dates') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.add_chaturmas') }}
|
||||
</li>
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
</div>
|
||||
<!--end::Page Heading-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-custom">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">
|
||||
{{ __('label.create_chaturmas_date_form_title') }}
|
||||
</h3>
|
||||
<div class="card-toolbar">
|
||||
<div class="example-tools justify-content-center">
|
||||
<span class="example-toggle" data-toggle="tooltip" title="View code"></span>
|
||||
<span class="example-copy" data-toggle="tooltip" title="Copy code"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--begin::Form-->
|
||||
{{ Form::open(['route' => 'admin.chaturmas-date.store','id' => 'createJatiForm', 'files' => true]) }}
|
||||
@include('backend.chaturmas-date.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
$(".allow-numeric").on("keypress keyup blur",function (event) {
|
||||
$(this).val($(this).val().replace(/[^\d].+/, ""));
|
||||
|
||||
if ((event.which < 48 || event.which > 57)) {
|
||||
$(".error").css("display", "inline");
|
||||
event.preventDefault();
|
||||
}else{
|
||||
$(".error").css("display", "none");
|
||||
}
|
||||
});
|
||||
|
||||
$.validator.addMethod('validDate', function (value, element) {
|
||||
return this.optional(element) || /^(0?[1-9]|1[012])[ /](0?[1-9]|[12][0-9]|3[01])[ /][0-9]{4}$/.test(value);
|
||||
}, 'Please provide a date in the mm/dd/yyyy format');
|
||||
|
||||
$.validator.addMethod('dateBefore', function (value, element, params) {
|
||||
// if end date is valid, validate it as well
|
||||
var end = $(params);
|
||||
if (!end.data('validation.running')) {
|
||||
$(element).data('validation.running', true);
|
||||
setTimeout($.proxy(
|
||||
|
||||
function () {
|
||||
this.element(end);
|
||||
}, this), 0);
|
||||
// Ensure clearing the 'flag' happens after the validation of 'end' to prevent endless looping
|
||||
setTimeout(function () {
|
||||
$(element).data('validation.running', false);
|
||||
}, 0);
|
||||
}
|
||||
return this.optional(element) || this.optional(end[0]) || new Date(value) < new Date(end.val());
|
||||
|
||||
}, 'Must be before corresponding to date');
|
||||
|
||||
$.validator.addMethod('dateAfter', function (value, element, params) {
|
||||
// if start date is valid, validate it as well
|
||||
var start = $(params);
|
||||
if (!start.data('validation.running')) {
|
||||
$(element).data('validation.running', true);
|
||||
setTimeout($.proxy(
|
||||
|
||||
function () {
|
||||
this.element(start);
|
||||
}, this), 0);
|
||||
setTimeout(function () {
|
||||
$(element).data('validation.running', false);
|
||||
}, 0);
|
||||
}
|
||||
return this.optional(element) || this.optional(start[0]) || new Date(value) > new Date($(params).val());
|
||||
|
||||
}, 'Must be after corresponding from date');
|
||||
}
|
||||
|
||||
$("#year").datepicker({
|
||||
format: "yyyy",
|
||||
viewMode: "years",
|
||||
minViewMode: "years",
|
||||
orientation: "bottom",
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createJatiForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
year: {
|
||||
required: true,
|
||||
},
|
||||
from: {
|
||||
dateBefore: '#to',
|
||||
required: true
|
||||
},
|
||||
to: {
|
||||
dateAfter: '#from',
|
||||
required: true
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('input-group')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
164
resources/views/backend/chaturmas-date/edit.blade.php
Normal file
164
resources/views/backend/chaturmas-date/edit.blade.php
Normal file
@@ -0,0 +1,164 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_chaturmas_date_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@push('after-styles')
|
||||
@endpush
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="subheader py-2 py-lg-4 subheader-solid" id="kt_subheader">
|
||||
<div class="container-fluid d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap">
|
||||
<!--begin::Info-->
|
||||
<div class="d-flex align-items-center flex-wrap mr-1">
|
||||
<!--begin::Page Heading-->
|
||||
<div class="d-flex align-items-baseline mr-5">
|
||||
<!--begin::Page Title-->
|
||||
<!--end::Page Title-->
|
||||
<!--begin::Breadcrumb-->
|
||||
<ul class="breadcrumb breadcrumb-transparent breadcrumb-dot font-weight-bold p-0 my-2 font-size-sm">
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.dashboard') }}" class="text-muted">{{ __('breadcrumb.dashboard') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.chaturmas-date.index') }}" class="text-muted">{{ __('breadcrumb.chaturmas_dates') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.edit_chaturmas') }}
|
||||
</li>
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
</div>
|
||||
<!--end::Page Heading-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-custom">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">
|
||||
{{ __('label.update_chaturmas_date_form_title') }}
|
||||
</h3>
|
||||
<div class="card-toolbar">
|
||||
<div class="example-tools justify-content-center">
|
||||
<span class="example-toggle" data-toggle="tooltip" title="View code"></span>
|
||||
<span class="example-copy" data-toggle="tooltip" title="Copy code"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--begin::Form-->
|
||||
{{ Form::model($chaturmas_date,['route' => ['admin.chaturmas-date.update', $chaturmas_date->id],'method' => 'PATCH','id' => 'updateJatiForm', 'files' => true]) }}
|
||||
@include('backend.chaturmas-date.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
$(".allow-numeric").on("keypress keyup blur",function (event) {
|
||||
$(this).val($(this).val().replace(/[^\d].+/, ""));
|
||||
|
||||
if ((event.which < 48 || event.which > 57)) {
|
||||
$(".error").css("display", "inline");
|
||||
event.preventDefault();
|
||||
}else{
|
||||
$(".error").css("display", "none");
|
||||
}
|
||||
});
|
||||
|
||||
$.validator.addMethod('validDate', function (value, element) {
|
||||
return this.optional(element) || /^(0?[1-9]|1[012])[ /](0?[1-9]|[12][0-9]|3[01])[ /][0-9]{4}$/.test(value);
|
||||
}, 'Please provide a date in the mm/dd/yyyy format');
|
||||
|
||||
$.validator.addMethod('dateBefore', function (value, element, params) {
|
||||
// if end date is valid, validate it as well
|
||||
var end = $(params);
|
||||
if (!end.data('validation.running')) {
|
||||
$(element).data('validation.running', true);
|
||||
setTimeout($.proxy(
|
||||
|
||||
function () {
|
||||
this.element(end);
|
||||
}, this), 0);
|
||||
// Ensure clearing the 'flag' happens after the validation of 'end' to prevent endless looping
|
||||
setTimeout(function () {
|
||||
$(element).data('validation.running', false);
|
||||
}, 0);
|
||||
}
|
||||
return this.optional(element) || this.optional(end[0]) || new Date(value) < new Date(end.val());
|
||||
|
||||
}, 'Must be before corresponding to date');
|
||||
|
||||
$.validator.addMethod('dateAfter', function (value, element, params) {
|
||||
// if start date is valid, validate it as well
|
||||
var start = $(params);
|
||||
if (!start.data('validation.running')) {
|
||||
$(element).data('validation.running', true);
|
||||
setTimeout($.proxy(
|
||||
|
||||
function () {
|
||||
this.element(start);
|
||||
}, this), 0);
|
||||
setTimeout(function () {
|
||||
$(element).data('validation.running', false);
|
||||
}, 0);
|
||||
}
|
||||
return this.optional(element) || this.optional(start[0]) || new Date(value) > new Date($(params).val());
|
||||
|
||||
}, 'Must be after corresponding from date');
|
||||
}
|
||||
|
||||
$("#year").datepicker({
|
||||
format: "yyyy",
|
||||
viewMode: "years",
|
||||
minViewMode: "years",
|
||||
orientation: "bottom",
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#updateJatiForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
year: {
|
||||
required: true,
|
||||
},
|
||||
from: {
|
||||
dateBefore: '#to',
|
||||
required: true
|
||||
},
|
||||
to: {
|
||||
dateAfter: '#from',
|
||||
required: true
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('input-group')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
223
resources/views/backend/chaturmas-date/list.blade.php
Normal file
223
resources/views/backend/chaturmas-date/list.blade.php
Normal file
@@ -0,0 +1,223 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_chaturmas_date_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@push('after-styles')
|
||||
<!-- DataTables -->
|
||||
<link href="{{ asset('public/js/datatable/dataTables.bootstrap4.min.css') }}" rel="stylesheet" type="text/css"/>
|
||||
@endpush
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="subheader py-2 py-lg-4 subheader-solid" id="kt_subheader">
|
||||
<div class="container-fluid d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap">
|
||||
<!--begin::Info-->
|
||||
<div class="d-flex align-items-center flex-wrap mr-1">
|
||||
<!--begin::Page Heading-->
|
||||
<div class="d-flex align-items-baseline mr-5">
|
||||
<!--begin::Page Title-->
|
||||
<!--end::Page Title-->
|
||||
<!--begin::Breadcrumb-->
|
||||
<ul class="breadcrumb breadcrumb-transparent breadcrumb-dot font-weight-bold p-0 my-2 font-size-sm">
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.dashboard') }}" class="text-muted">{{ __('breadcrumb.dashboard') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.chaturmas_dates') }}
|
||||
</li>
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
</div>
|
||||
<!--end::Page Heading-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-custom">
|
||||
<div class="card-header flex-wrap border-0 pt-6 pb-0">
|
||||
<div class="card-title">
|
||||
<h3>{{ __('label.listing_chaturmas_date_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.chaturmas-date.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_chaturmas_date') }}
|
||||
</a>
|
||||
<!--end::Button-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="mb-7">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-12 col-xl-12">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-3 my-2 my-md-0">
|
||||
<div class="d-flex align-items-center">
|
||||
{{ Form::text('year',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','placeholder' => __('label.search')]) }}
|
||||
</div>
|
||||
</div>
|
||||
{{-- <div class="col-md-3 my-2 my-md-0">
|
||||
<div class="d-flex align-items-center">
|
||||
<label class="mr-3 mb-0 d-none d-md-block">{{ __('label.status')}}</label>
|
||||
{{ Form::select('status',['1' => 'Active','0' => 'Inactive'],null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'status','title' => __('placeholder.select_status')]) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 my-md-0">
|
||||
<button class="btn btn-secondary btn-secondary--icon" id="kt_reset" style="display: none">
|
||||
<span>
|
||||
<i class="la la-close"></i>
|
||||
<span>{{ __('buttons.reset') }}</span>
|
||||
</span>
|
||||
</button>
|
||||
</div> --}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--begin: Selected Rows Group Action Form-->
|
||||
<div class="mb-2 multiple-actions" id="checkboxActionDropdown">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="font-weight-bold text-danger mr-3">Selected
|
||||
<span id="datatableSelectedRecords">0</span> records:</div>
|
||||
{{-- <div class="dropdown mr-2">
|
||||
<button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">{{ __('label.update_action') }}</button>
|
||||
<div class="dropdown-menu dropdown-menu-sm">
|
||||
<ul class="nav nav-hover flex-column">
|
||||
<li class="nav-item">
|
||||
<a href="javascript:void(0);" data-value="active" class="nav-link action-type">
|
||||
<span class="nav-text">{{ __('label.active') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="javascript:void(0);" data-value="inactive" class="nav-link action-type">
|
||||
<span class="nav-text">{{ __('label.inactive') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div> --}}
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger mr-2 action-type" data-value="delete">Delete All</a>
|
||||
</div>
|
||||
</div>
|
||||
<!--end: Selected Rows Group Action Form-->
|
||||
<div id="kt_datatable_wrapper" class="dataTables_wrapper dt-bootstrap4 no-footer admin-table">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="datatable datatable-default datatable-bordered datatable-loaded">
|
||||
<table class="datatable-bordered datatable-head-custom datatable-table table-hover"
|
||||
id="users-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<span style="width: 20px;">
|
||||
<label class="checkbox checkbox-single">
|
||||
<input type="checkbox"
|
||||
name="checkbox_action[]" id="checkbox-all"/> <span></span>
|
||||
</label>
|
||||
</span>
|
||||
</th>
|
||||
<th>{{ __('label.chaturmas_date_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.chaturmas_date_listing_heading_3') }}</th>
|
||||
<th>{{ __('label.chaturmas_date_listing_heading_4') }}</th>
|
||||
<th>{{ __('label.created_at') }}</th>
|
||||
<th>{{ __('label.chaturmas_date_listing_heading_5') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
<!-- DataTables -->
|
||||
<script src="{{ asset('public/js/datatable/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('public/js/datatable/dataTables.bootstrap4.min.js') }}"></script>
|
||||
<script src="{{ asset('public/js/datatable/datatable-skeleton.js?v='.time()) }}"></script>
|
||||
<script>
|
||||
|
||||
$(document).on('keyup', '#title', function () {
|
||||
if ($('#title').val() === '' && $('#status').val() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('change', '#status', function () {
|
||||
if ($('#title').val() === '' && $('#status').val() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '#kt_reset', function () {
|
||||
$('#kt_reset').hide();
|
||||
});
|
||||
|
||||
customDataTableWidget.configuration({
|
||||
element: '#users-table',
|
||||
listingUrl: "{{ route('admin.chaturmas-date.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.chaturmas-date.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.chaturmas-date.grid.records.action') }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'year',
|
||||
name: 'year',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'from',
|
||||
name: 'from',
|
||||
},
|
||||
{
|
||||
data: 'to',
|
||||
name: 'to',
|
||||
},
|
||||
{
|
||||
data: 'created_at',
|
||||
name: 'created_at',
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'status',
|
||||
type: 'select'
|
||||
},
|
||||
{
|
||||
key: 'year',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 1,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,61 @@
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.chaturmas_date_form_year') }} <span class="text-danger">*</span></label>
|
||||
<div class="input-group date">
|
||||
{{ Form::text('year',null,['id' => 'year', 'autocomplete' => 'off', 'class' => $errors->has('year') ? 'form-control date-picker is-invalid' : 'form-control date-picker','placeholder' => __('placeholder.chaturmas_year')]) }}
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">
|
||||
<i class="fas fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
@error('year')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.chaturmas_from_date') }} <span class="text-danger">*</span></label>
|
||||
<div class="input-group date">
|
||||
{{ Form::text('from',null,['id' => 'from', 'autocomplete' => 'off','class' => $errors->has('from') ? 'form-control date-picker is-invalid' : 'form-control date-picker','placeholder' => __('placeholder.chaturmas_from_date')]) }}
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">
|
||||
<i class="fas fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
@error('from')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.chaturmas_to_date') }} <span class="text-danger">*</span></label>
|
||||
<div class="input-group date">
|
||||
{{ Form::text('to',null,['id' => 'to', 'autocomplete' => 'off','class' => $errors->has('to') ? 'form-control date-picker is-invalid' : 'form-control date-picker','placeholder' => __('placeholder.chaturmas_to_date')]) }}
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">
|
||||
<i class="fas fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
@error('to')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</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.chaturmas-date.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.chaturmas-date.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user