api code global jain
This commit is contained in:
65
resources/views/backend/admin/create.blade.php
Normal file
65
resources/views/backend/admin/create.blade.php
Normal file
@@ -0,0 +1,65 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_user_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">
|
||||
<a href="{{ route('admin.admin.user.index') }}" class="text-muted">{{ __('breadcrumb.users') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.admin.user.create') }}" class="text-muted">{{ __('breadcrumb.create_user') }}</a>
|
||||
</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_user_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.admin.user.store','id' => 'createUserForm']) }}
|
||||
@include('backend.admin.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@section('after-scripts')
|
||||
@endsection
|
||||
112
resources/views/backend/admin/dashboard.blade.php
Normal file
112
resources/views/backend/admin/dashboard.blade.php
Normal file
@@ -0,0 +1,112 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_user_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.admin.user.index') }}" class="text-muted">{{ __('breadcrumb.users') }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
</div>
|
||||
<!--end::Page Heading-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex flex-column-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xl-3">
|
||||
<!--begin::Stats Widget 29-->
|
||||
<div class="card card-custom bgi-no-repeat card-stretch gutter-b" style="background-position: right top; background-size: 30% auto; background-image: url(/metronic/theme/html/demo1/dist/assets/media/svg/shapes/abstract-1.svg)">
|
||||
<!--begin::Body-->
|
||||
<div class="card-body">
|
||||
<span class="svg-icon svg-icon-2x svg-icon-info">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Communication/Mail-opened.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24"></rect>
|
||||
<path d="M6,2 L18,2 C18.5522847,2 19,2.44771525 19,3 L19,12 C19,12.5522847 18.5522847,13 18,13 L6,13 C5.44771525,13 5,12.5522847 5,12 L5,3 C5,2.44771525 5.44771525,2 6,2 Z M7.5,5 C7.22385763,5 7,5.22385763 7,5.5 C7,5.77614237 7.22385763,6 7.5,6 L13.5,6 C13.7761424,6 14,5.77614237 14,5.5 C14,5.22385763 13.7761424,5 13.5,5 L7.5,5 Z M7.5,7 C7.22385763,7 7,7.22385763 7,7.5 C7,7.77614237 7.22385763,8 7.5,8 L10.5,8 C10.7761424,8 11,7.77614237 11,7.5 C11,7.22385763 10.7761424,7 10.5,7 L7.5,7 Z" fill="#000000" opacity="0.3"></path>
|
||||
<path d="M3.79274528,6.57253826 L12,12.5 L20.2072547,6.57253826 C20.4311176,6.4108595 20.7436609,6.46126971 20.9053396,6.68513259 C20.9668779,6.77033951 21,6.87277228 21,6.97787787 L21,17 C21,18.1045695 20.1045695,19 19,19 L5,19 C3.8954305,19 3,18.1045695 3,17 L3,6.97787787 C3,6.70173549 3.22385763,6.47787787 3.5,6.47787787 C3.60510559,6.47787787 3.70753836,6.51099993 3.79274528,6.57253826 Z" fill="#000000"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="card-title font-weight-bolder text-dark-75 font-size-h2 mb-0 mt-6 d-block">{{ $data['statistics']['totalSentInvitation'] }}</span>
|
||||
<span class="font-weight-bold text-muted font-size-sm">No. sent Invitation </span>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Stats Widget 29-->
|
||||
</div>
|
||||
<div class="col-xl-3">
|
||||
<!--begin::Stats Widget 30-->
|
||||
<div class="card card-custom bg-info card-stretch gutter-b">
|
||||
<!--begin::Body-->
|
||||
<div class="card-body">
|
||||
<span class="svg-icon svg-icon-2x svg-icon-white">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Communication/Group.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<polygon points="0 0 24 0 24 24 0 24"></polygon>
|
||||
<path d="M18,14 C16.3431458,14 15,12.6568542 15,11 C15,9.34314575 16.3431458,8 18,8 C19.6568542,8 21,9.34314575 21,11 C21,12.6568542 19.6568542,14 18,14 Z M9,11 C6.790861,11 5,9.209139 5,7 C5,4.790861 6.790861,3 9,3 C11.209139,3 13,4.790861 13,7 C13,9.209139 11.209139,11 9,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3"></path>
|
||||
<path d="M17.6011961,15.0006174 C21.0077043,15.0378534 23.7891749,16.7601418 23.9984937,20.4 C24.0069246,20.5466056 23.9984937,21 23.4559499,21 L19.6,21 C19.6,18.7490654 18.8562935,16.6718327 17.6011961,15.0006174 Z M0.00065168429,20.1992055 C0.388258525,15.4265159 4.26191235,13 8.98334134,13 C13.7712164,13 17.7048837,15.2931929 17.9979143,20.2 C18.0095879,20.3954741 17.9979143,21 17.2466999,21 C13.541124,21 8.03472472,21 0.727502227,21 C0.476712155,21 -0.0204617505,20.45918 0.00065168429,20.1992055 Z" fill="#000000" fill-rule="nonzero"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="card-title font-weight-bolder text-white font-size-h2 mb-0 mt-6 d-block">{!! $data['statistics']['users']['total'] !!}</span>
|
||||
<span class="font-weight-bold text-white font-size-sm">No. of Admins</span>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Stats Widget 30-->
|
||||
</div>
|
||||
<div class="col-xl-3">
|
||||
<!--begin::Stats Widget 31-->
|
||||
<div class="card card-custom bg-danger card-stretch gutter-b">
|
||||
<!--begin::Body-->
|
||||
<div class="card-body">
|
||||
<span class="svg-icon svg-icon-2x svg-icon-white">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Media/Equalizer.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24"></rect>
|
||||
<rect fill="#000000" opacity="0.3" x="13" y="4" width="3" height="16" rx="1.5"></rect>
|
||||
<rect fill="#000000" x="8" y="9" width="3" height="11" rx="1.5"></rect>
|
||||
<rect fill="#000000" x="18" y="11" width="3" height="9" rx="1.5"></rect>
|
||||
<rect fill="#000000" x="3" y="13" width="3" height="7" rx="1.5"></rect>
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="card-title font-weight-bolder text-white font-size-h2 mb-0 mt-6 d-block">{{ $data['statistics']['totalPendingAccountActivation'] }}</span>
|
||||
<span class="font-weight-bold text-white font-size-sm">Pending account</span>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Stats Widget 31-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
1
resources/views/backend/admin/details.blade.php
Normal file
1
resources/views/backend/admin/details.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
Details Blade
|
||||
65
resources/views/backend/admin/edit.blade.php
Normal file
65
resources/views/backend/admin/edit.blade.php
Normal file
@@ -0,0 +1,65 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_user_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">
|
||||
<a href="{{ route('admin.admin.user.index') }}" class="text-muted">{{ __('breadcrumb.users') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="javascript:void(0);" class="text-muted">{{ __('breadcrumb.update_user') }}</a>
|
||||
</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_user_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($user,['route' => ['admin.admin.user.update', $user->id],'method' => 'PATCH','id' => 'updateUserForm']) }}
|
||||
@include('backend.admin.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
<script src="{{ asset('/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
@endsection
|
||||
246
resources/views/backend/admin/list.blade.php
Normal file
246
resources/views/backend/admin/list.blade.php
Normal file
@@ -0,0 +1,246 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_user_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.admin.user.index') }}"
|
||||
class="text-muted">{{ __('breadcrumb.users') }}</a>
|
||||
</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_user_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.admin.user.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_user') }}
|
||||
</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">
|
||||
<label class="mr-3 mb-0 d-none d-md-block">{{ __('label.admin_search_name')}}:</label>
|
||||
{{ Form::text('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'name','title' => __('placeholder.admin_search_name_placeholder')]) }}
|
||||
</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.admin_search_email')}}:</label>
|
||||
{{ Form::text('email',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'email','title' => __('placeholder.admin_search_email_placeholder')]) }}
|
||||
</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.name') }}</th>
|
||||
<th>{{ __('label.email') }}</th>
|
||||
{{-- <th>{{ __('label.status') }}</th> --}}
|
||||
{{-- <th>{{ __('label.account_verified_at') }}</th> --}}
|
||||
<th>{{ __('label.created_at') }}</th>
|
||||
<th>{{ __('label.action') }}</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', '#name', function () {
|
||||
if ($('#name').val() == '' && $('#email').val() == '' && $('#status').val() == '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('keyup', '#email', function () {
|
||||
if ($('#name').val() == '' && $('#email').val() == '' && $('#status').val() == '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('change', '#status', function () {
|
||||
if ($('#name').val() == '' && $('#email').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.admin.user.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.admin.user.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.admin.user.grid.records.action') }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'email',
|
||||
name: 'email',
|
||||
searchable: true
|
||||
},
|
||||
// {
|
||||
// data: 'status',
|
||||
// name: 'status'
|
||||
// },
|
||||
// {
|
||||
// data: 'email_verified_at',
|
||||
// name: 'email_verified_at',
|
||||
// },
|
||||
{
|
||||
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: 'email',
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 1,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
81
resources/views/backend/admin/partials/_form.blade.php
Normal file
81
resources/views/backend/admin/partials/_form.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.name') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.name')]) }}
|
||||
@error('name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.role') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::select('role_id',!empty($roles) ? $roles : [],!empty($user->roles[0]['id']) ? $user->roles[0]['id'] : null,['class' => $errors->has('role_id') ? 'form-control selectpicker is-invalid' : 'form-control selectpicker','title' => __('placeholder.select_role'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('role_id')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
@if(\Request::route()->getName() == 'admin.admin.user.edit')
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.email') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::email('email',null,['class' => $errors->has('email') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.email')]) }}
|
||||
@error('email')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
@else
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.email') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::email('email',null,['class' => $errors->has('email') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.email')]) }}
|
||||
@error('email')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@if(!isset($user) || (isset($user) && loggedInUser()->id != $user->id))
|
||||
<!-- <div class="form-group row">
|
||||
<label class="col-3 col-form-label">{{ __('label.status') }}</label>
|
||||
<div class="col-3">
|
||||
<span class="switch switch-outline switch-icon switch-primary">
|
||||
<label>
|
||||
{{ Form::checkbox('status',$user->status ?? null,isset($user->status) && $user->status == 1 ? 'checked' : '') }}
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
<label class="col-3 col-form-label">{{ __('label.account_confirmation') }}</label>
|
||||
<div class="col-3">
|
||||
<span class="switch switch-outline switch-icon switch-primary">
|
||||
<label>
|
||||
{{ Form::checkbox('is_verify',isset($user->email_verified_at) ?? null,!empty($user->email_verified_at) ? 'checked' : '') }}
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div> -->
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
|
||||
@if(!empty($user->invite_status) != 1 && \Request::route()->getName() == 'admin.admin.user.edit')
|
||||
<!-- <button type="submit" name="save_and_invite" value="save_and_invite"
|
||||
class="btn btn-primary mr-2 pull-right">{{ __('buttons.save_invite') }}</button> -->
|
||||
@elseif(\Request::route()->getName() == 'admin.admin.user.create')
|
||||
<!-- <button type="submit" name="save_and_invite" value="save_and_invite"
|
||||
class="btn btn-primary mr-2 pull-right">{{ __('buttons.save_invite') }}</button> -->
|
||||
@endif
|
||||
|
||||
<button type="submit" name="save" value="save" class="btn btn-primary mr-2">
|
||||
@if(\Request::route()->getName() == 'admin.admin.user.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.admin.user.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
@@ -0,0 +1,47 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.setting_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">
|
||||
<a href="{{ route('admin.account-setting.index',['change-password']) }}" class="text-muted">{{ __('breadcrumb.account_setting') }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
</div>
|
||||
<!--end::Page Heading-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="d-flex flex-row">
|
||||
@include('backend.auth.account_setting.partials._side_menu')
|
||||
|
||||
<div class="flex-row-fluid ml-lg-8">
|
||||
<div class="card card-custom">
|
||||
@if($current_tab == 'change-password')
|
||||
@include('backend.auth.account_setting.partials._change_password')
|
||||
@endif
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,100 @@
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">{{trans('account_setting.page.change_password.message_1')}}</h3>
|
||||
</div>
|
||||
|
||||
{{ Form::open(['route' => 'admin.account-setting.update-password', 'role' => 'form', 'method' => 'post', 'id' => 'changePasswordForm']) }}
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>{{trans('account_setting.page.change_password.field_1')}}
|
||||
<span class="text-danger">*</span></label>
|
||||
{{ Form::password('current_password',['id' => 'current_password', 'class' => 'form-control'. ($errors->has('current_password') ? ' is-invalid' : null),'placeholder' => trans('account_setting.page.change_password.field_1')]) }}
|
||||
|
||||
@error('current_password')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">{{ $message }}</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>{{trans('account_setting.page.change_password.field_2')}}
|
||||
<span class="text-danger">*</span></label>
|
||||
{{ Form::password('new_password',['id' => 'new_password', 'class' => 'form-control'. ($errors->has('new_password') ? ' is-invalid' : null),'placeholder' => trans('account_setting.page.change_password.field_2')]) }}
|
||||
|
||||
@error('new_password')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">{{ $message }}</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label>{{trans('account_setting.page.change_password.field_3')}}
|
||||
<span class="text-danger">*</span></label>
|
||||
{{ Form::password('confirm_password',['id' => 'confirm_password', 'class' => 'form-control'. ($errors->has('confirm_password') ? ' is-invalid' : null),'placeholder' => trans('account_setting.page.change_password.field_3')]) }}
|
||||
|
||||
@error('confirm_password')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">{{ $message }}</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
{{ Form::submit(trans('account_setting.page.change_password.button_1'),['class' => 'btn btn-primary mr-2']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
$("#changePasswordForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
rules: {
|
||||
current_password: {
|
||||
required: true,
|
||||
},
|
||||
new_password: {
|
||||
required: true,
|
||||
},
|
||||
confirm_password: {
|
||||
required: true,
|
||||
equalTo: "#new_password"
|
||||
}
|
||||
},
|
||||
messages:{
|
||||
confirm_password: {
|
||||
equalTo: "{{trans('account_setting.validate.change_password.message_3')}}"
|
||||
}
|
||||
},
|
||||
errorPlacement: function (error, element) {
|
||||
error.addClass('invalid-feedback');
|
||||
error.insertAfter($(element).addClass('is-invalid'));
|
||||
},
|
||||
highlight: function(element) { // <-- fires when element has error
|
||||
$(element).closest('.form-control').removeClass('valid').addClass('is-invalid');
|
||||
},
|
||||
unhighlight: function(element) { // <-- fires when element is valid
|
||||
$(element).closest('.form-control').removeClass('is-invalid').addClass('valid');
|
||||
},
|
||||
|
||||
submitHandler: function(form) {
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,39 @@
|
||||
<div class="flex-row-auto offcanvas-mobile w-250px w-xxl-350px" id="kt_profile_aside">
|
||||
<div class="card card-custom card-stretch">
|
||||
<div class="card-body pt-4">
|
||||
<div class="navi navi-bold navi-hover navi-active navi-link-rounded">
|
||||
<div class="navi-item mb-2">
|
||||
<a href="{{route('admin.account-setting.index', ['change-password'])}}"
|
||||
class="navi-link py-4 @if($current_tab == 'change-password') active @endif">
|
||||
<span class="navi-icon mr-2">
|
||||
<span class="svg-icon">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Communication/Shield-user.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="24px" height="24px" viewBox="0 0 24 24"
|
||||
version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none"
|
||||
fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24"
|
||||
height="24"></rect>
|
||||
<path
|
||||
d="M4,4 L11.6314229,2.5691082 C11.8750185,2.52343403 12.1249815,2.52343403 12.3685771,2.5691082 L20,4 L20,13.2830094 C20,16.2173861 18.4883464,18.9447835 16,20.5 L12.5299989,22.6687507 C12.2057287,22.8714196 11.7942713,22.8714196 11.4700011,22.6687507 L8,20.5 C5.51165358,18.9447835 4,16.2173861 4,13.2830094 L4,4 Z"
|
||||
fill="#000000" opacity="0.3"></path>
|
||||
<path
|
||||
d="M12,11 C10.8954305,11 10,10.1045695 10,9 C10,7.8954305 10.8954305,7 12,7 C13.1045695,7 14,7.8954305 14,9 C14,10.1045695 13.1045695,11 12,11 Z"
|
||||
fill="#000000" opacity="0.3"></path>
|
||||
<path
|
||||
d="M7.00036205,16.4995035 C7.21569918,13.5165724 9.36772908,12 11.9907452,12 C14.6506758,12 16.8360465,13.4332455 16.9988413,16.5 C17.0053266,16.6221713 16.9988413,17 16.5815,17 C14.5228466,17 11.463736,17 7.4041679,17 C7.26484009,17 6.98863236,16.6619875 7.00036205,16.4995035 Z"
|
||||
fill="#000000" opacity="0.3"></path>
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</span>
|
||||
<span class="navi-text font-size-lg">{{trans('account_setting.page.menu.item_3')}}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
103
resources/views/backend/auth/login.blade.php
Normal file
103
resources/views/backend/auth/login.blade.php
Normal file
@@ -0,0 +1,103 @@
|
||||
@extends('backend.layouts.login')
|
||||
|
||||
@section('title',__('label.admin_login_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex flex-column flex-root">
|
||||
<!--begin::Login-->
|
||||
<div class="login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-white" id="kt_login">
|
||||
<!--begin::Aside-->
|
||||
<div class="login-aside d-flex flex-column flex-row-auto" style="background-color: #D3D0D0;">
|
||||
<!--begin::Aside Top-->
|
||||
<div class="d-flex flex-column-auto flex-column pt-25">
|
||||
<!--begin::Aside header-->
|
||||
<!--end::Aside header-->
|
||||
</div>
|
||||
<!--end::Aside Top-->
|
||||
<!--begin::Aside Bottom-->
|
||||
<div class="aside-img d-flex flex-row-fluid bgi-no-repeat bgi-position-x-center" style="min-height: 280px;background-size: 80%;background-repeat: no-repeat;background-position: center center;background-image: url(public/assets/media/admin-console-banner.png)"></div>
|
||||
<!--end::Aside Bottom-->
|
||||
</div>
|
||||
<!--begin::Aside-->
|
||||
<!--begin::Content-->
|
||||
<div class="login-content flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto">
|
||||
<!--begin::Content body-->
|
||||
|
||||
|
||||
<div class="d-flex flex-column-fluid justify-content-center flex-column mt-4">
|
||||
<!--begin::Signin-->
|
||||
<img alt="Logo" src="{{ asset('public/images/logos/Global-Jain-Logo.png') }}" width="350" vspace="30px"/>
|
||||
<div class="login-form login-signin">
|
||||
<!--begin::Form-->
|
||||
<form method="POST" action="{{ route('admin.login') }}">
|
||||
@csrf
|
||||
<!--begin::Title-->
|
||||
<div class="pb-3 pt-lg-0 pt-5">
|
||||
<h3 class="font-weight-bolder text-dark font-size-h4 font-size-h1-lg">{{ __('label.welcome_console_title',['param' => app_name()]) }}</h3>
|
||||
</div>
|
||||
<!--begin::Title-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.email') }}</label>
|
||||
{{ Form::text('email',null,['class' => 'form-control form-control-solid h-auto py-6 px-6 rounded-lg'. ($errors->has('email') ? ' is-invalid' : null)])}}
|
||||
@error('email')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group">
|
||||
<div class="d-flex justify-content-between mt-n5">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark pt-5">{{ __('label.password') }}</label>
|
||||
<a href="{{ route('admin.password.request') }}" class="text-primary font-size-h6 font-weight-bolder text-hover-primary pt-5" id="kt_login_forgot">{{ __('label.forgot_password') }}</a>
|
||||
</div>
|
||||
{{ Form::password('password',['class' => 'form-control form-control-solid h-auto py-6 px-6 rounded-lg'. ($errors->has('password') ? ' is-invalid' : null)])}}
|
||||
@error('password')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
|
||||
<label class="form-check-label" for="remember">
|
||||
{{ __('Remember Me') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Action-->
|
||||
<div class="pb-lg-0 pb-5">
|
||||
{{ Form::submit(__('buttons.sign_in'),['class' => 'btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 mr-3'])}}
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Signin-->
|
||||
</div>
|
||||
<!--end::Signup-->
|
||||
</div>
|
||||
<!--end::Content body-->
|
||||
<!--begin::Content footer-->
|
||||
<div class="d-flex justify-content-lg-start justify-content-center align-items-end py-7 py-lg-0">
|
||||
<div class="text-dark-50 font-size-lg font-weight-bolder mr-10">
|
||||
<span class="mr-1">{{date('Y')}} © {{ app_name() }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Content footer-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Login-->
|
||||
@endsection
|
||||
51
resources/views/backend/auth/passwords/confirm.blade.php
Normal file
51
resources/views/backend/auth/passwords/confirm.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title',__('label.admin_confirm_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Confirm Password') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
{{ __('Please confirm your password before continuing.') }}
|
||||
|
||||
<form method="POST" action="{{ route('password.confirm') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-8 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Confirm Password') }}
|
||||
</button>
|
||||
|
||||
@if (Route::has('password.request'))
|
||||
<a class="btn btn-link" href="{{ route('password.request') }}">
|
||||
{{ __('Forgot Your Password?') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
75
resources/views/backend/auth/passwords/email.blade.php
Normal file
75
resources/views/backend/auth/passwords/email.blade.php
Normal file
@@ -0,0 +1,75 @@
|
||||
@extends('backend.layouts.login')
|
||||
|
||||
@section('title',__('label.admin_email_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex flex-column flex-root">
|
||||
<!--begin::Login-->
|
||||
<div class="login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-white" id="kt_login">
|
||||
<!--begin::Aside-->
|
||||
<div class="login-aside d-flex flex-column flex-row-auto" style="background-color: #D3D0D0;">
|
||||
<!--begin::Aside Top-->
|
||||
<div class="d-flex flex-column-auto flex-column pt-25">
|
||||
<!--begin::Aside header-->
|
||||
<!--end::Aside header-->
|
||||
</div>
|
||||
<!--end::Aside Top-->
|
||||
<!--begin::Aside Bottom-->
|
||||
<div class="aside-img d-flex flex-row-fluid bgi-no-repeat bgi-position-x-center" style="min-height: 280px;background-size: 80%;background-repeat: no-repeat;background-position: center center;background-image: url(/assets/media/admin-console-banner.png)"></div>
|
||||
<!--end::Aside Bottom-->
|
||||
</div>
|
||||
<!--begin::Aside-->
|
||||
<!--begin::Content-->
|
||||
<div class="login-content flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto">
|
||||
<!--begin::Content body-->
|
||||
<div class="d-flex flex-column-fluid flex-center">
|
||||
<!--begin::Signin-->
|
||||
<div class="login-form login-signin">
|
||||
<!--begin::Form-->
|
||||
<form method="POST" action="{{ route('admin.password.email') }}">
|
||||
@csrf
|
||||
<!--begin::Title-->
|
||||
<div class="pb-13 pt-lg-0 pt-5">
|
||||
<h3 class="font-weight-bolder text-dark font-size-h4 font-size-h1-lg">{{ __('label.forgotten_password') }}</h3>
|
||||
<p class="font-weight-bold font-size-h4">{{ __('label.reset_your_password') }}</p>
|
||||
</div>
|
||||
<!--begin::Title-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.email') }}</label>
|
||||
{{ Form::text('email',null,['class' => 'form-control form-control-solid h-auto py-6 px-6 rounded-lg'. ($errors->has('email') ? ' is-invalid' : null)])}}
|
||||
@error('email')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Action-->
|
||||
<div class="pb-lg-0 pb-5">
|
||||
{{ Form::submit(__('buttons.submit'),['class' => 'btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 mr-3'])}}
|
||||
<a href="{{ route('admin.login') }}" class="btn btn-light-primary font-weight-bolder font-size-h6 px-8 py-4 my-3"> {{ __('buttons.cancel') }} </a>
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Signin-->
|
||||
</div>
|
||||
<!--end::Signup-->
|
||||
</div>
|
||||
<!--end::Content body-->
|
||||
<!--begin::Content footer-->
|
||||
<div class="d-flex justify-content-lg-start justify-content-center align-items-end py-7 py-lg-0">
|
||||
<div class="text-dark-50 font-size-lg font-weight-bolder mr-10">
|
||||
<span class="mr-1">{{date('Y')}} ©</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Content footer-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Login-->
|
||||
@endsection
|
||||
101
resources/views/backend/auth/passwords/reset.blade.php
Normal file
101
resources/views/backend/auth/passwords/reset.blade.php
Normal file
@@ -0,0 +1,101 @@
|
||||
@extends('backend.layouts.login')
|
||||
|
||||
@section('title',__('label.admin_reset_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex flex-column flex-root">
|
||||
<!--begin::Login-->
|
||||
<div class="login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-white" id="kt_login">
|
||||
<!--begin::Aside-->
|
||||
<div class="login-aside d-flex flex-column flex-row-auto" style="background-color: #D3D0D0;">
|
||||
<!--begin::Aside Top-->
|
||||
<div class="d-flex flex-column-auto flex-column pt-25">
|
||||
<!--begin::Aside header-->
|
||||
<!--end::Aside header-->
|
||||
</div>
|
||||
<!--end::Aside Top-->
|
||||
<!--begin::Aside Bottom-->
|
||||
<div class="aside-img d-flex flex-row-fluid bgi-no-repeat bgi-position-x-center" style="min-height: 280px;background-size: 80%;background-repeat: no-repeat;background-position: center center;background-image: url(/assets/media/admin-console-banner.png)"></div>
|
||||
<!--end::Aside Bottom-->
|
||||
</div>
|
||||
<!--begin::Aside-->
|
||||
<!--begin::Content-->
|
||||
<div class="login-content flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto">
|
||||
<!--begin::Content body-->
|
||||
<div class="d-flex flex-column-fluid flex-center">
|
||||
<!--begin::Signin-->
|
||||
<div class="login-form login-signin">
|
||||
<!--begin::Form-->
|
||||
<form method="POST" action="{{ route('admin.password.update') }}">
|
||||
@csrf
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
<!--begin::Title-->
|
||||
<div class="pb-13 pt-lg-0 pt-5">
|
||||
<h3 class="font-weight-bolder text-dark font-size-h4 font-size-h1-lg">{{ __('label.reset_password') }}</h3>
|
||||
</div>
|
||||
<!--begin::Title-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.email') }}</label>
|
||||
{{ Form::text('email',($email ?? old('email')),['class' => 'form-control form-control-solid h-auto py-6 px-6 rounded-lg'. ($errors->has('email') ? ' is-invalid' : null)])}}
|
||||
@error('email')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="d-flex justify-content-between mt-n5">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark pt-5">{{ __('label.password') }}</label>
|
||||
</div>
|
||||
{{ Form::password('password',['class' => 'form-control form-control-solid h-auto py-6 px-6 rounded-lg'. ($errors->has('password') ? ' is-invalid' : null)])}}
|
||||
@error('password')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="d-flex justify-content-between mt-n5">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark pt-5">{{ __('label.password_confirmation') }}</label>
|
||||
</div>
|
||||
{{ Form::password('password_confirmation',['class' => 'form-control form-control-solid h-auto py-6 px-6 rounded-lg'. ($errors->has('password_confirmation') ? ' is-invalid' : null)])}}
|
||||
@error('password_confirmation')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Action-->
|
||||
<div class="pb-lg-0 pb-5">
|
||||
{{ Form::submit(__('buttons.submit'),['class' => 'btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 mr-3'])}}
|
||||
<a href="{{ route('admin.login') }}" class="btn btn-light-primary font-weight-bolder font-size-h6 px-8 py-4 my-3"> {{ __('buttons.cancel') }} </a>
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Signin-->
|
||||
</div>
|
||||
<!--end::Signup-->
|
||||
</div>
|
||||
<!--end::Content body-->
|
||||
<!--begin::Content footer-->
|
||||
<div class="d-flex justify-content-lg-start justify-content-center align-items-end py-7 py-lg-0">
|
||||
<div class="text-dark-50 font-size-lg font-weight-bolder mr-10">
|
||||
<span class="mr-1">{{date('Y')}} ©</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Content footer-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Login-->
|
||||
@endsection
|
||||
79
resources/views/backend/auth/register.blade.php
Normal file
79
resources/views/backend/auth/register.blade.php
Normal file
@@ -0,0 +1,79 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title',__('label.admin_register_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Register') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('register') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="name" class="col-md-4 col-form-label text-md-right">{{ __('Name') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="name" type="text" class="form-control @error('name') is-invalid @enderror" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>
|
||||
|
||||
@error('name')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email">
|
||||
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">
|
||||
|
||||
@error('password')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm Password') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-0">
|
||||
<div class="col-md-6 offset-md-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{ __('Register') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
158
resources/views/backend/auth/signup.blade.php
Normal file
158
resources/views/backend/auth/signup.blade.php
Normal file
@@ -0,0 +1,158 @@
|
||||
@extends('backend.layouts.login')
|
||||
|
||||
@section('title',env('APP_NAME').' | '. __('label.admin_sign_up_page_title'))
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex flex-column flex-root">
|
||||
<!--begin::Login-->
|
||||
<div class="login login-1 login-signin-on d-flex flex-column flex-lg-row flex-column-fluid bg-white" id="kt_login">
|
||||
<!--begin::Aside-->
|
||||
<div class="login-aside d-flex flex-column flex-row-auto" style="background-color: #D3D0D0;">
|
||||
<!--begin::Aside Top-->
|
||||
<div class="d-flex flex-column-auto flex-column pt-25">
|
||||
<!--begin::Aside header-->
|
||||
<!--end::Aside header-->
|
||||
</div>
|
||||
<!--end::Aside Top-->
|
||||
<!--begin::Aside Bottom-->
|
||||
<div class="aside-img d-flex flex-row-fluid bgi-no-repeat bgi-position-x-center" style="min-height: 280px;background-size: 80%;background-repeat: no-repeat;background-position: center center;background-image: url(/assets/media/admin-console-banner.png)"></div>
|
||||
<!--end::Aside Bottom-->
|
||||
</div>
|
||||
<!--begin::Aside-->
|
||||
<!--begin::Content-->
|
||||
<div class="login-content flex-row-fluid d-flex flex-column justify-content-center position-relative overflow-hidden p-7 mx-auto">
|
||||
<!--begin::Content body-->
|
||||
<div class="d-flex flex-column-fluid flex-center">
|
||||
<!--begin::Signin-->
|
||||
<div class="login-form login-signin">
|
||||
<!--begin::Form-->
|
||||
<form method="POST" action="{{ route('admin.user.post.register') }}">
|
||||
@csrf
|
||||
<input type="hidden" name="user_id" value="{{ request('user') }}">
|
||||
<!--begin::Title-->
|
||||
<div class="pb-13 pt-lg-0 pt-5">
|
||||
<h3 class="font-weight-bolder text-dark font-size-h4 font-size-h1-lg">{{ __('label.welcome_invite_title',['param' => app_name()]) }}</h3>
|
||||
</div>
|
||||
<!--begin::Title-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.first_name') }}</label>
|
||||
{{ Form::text('first_name',!empty($user->first_name) ? $user->first_name : null,['class' => 'form-control form-control-solid h-auto py-4 px-4 rounded-lg'. ($errors->has('first_name') ? ' is-invalid' : null)])}}
|
||||
@error('first_name')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.last_name') }}</label>
|
||||
{{ Form::text('last_name',!empty($user->last_name) ? $user->last_name : null,['class' => 'form-control form-control-solid h-auto py-4 px-4 rounded-lg'. ($errors->has('last_name') ? ' is-invalid' : null)])}}
|
||||
@error('last_name')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.email') }}</label>
|
||||
{{ Form::text('email',!empty($user->email) ? $user->email : null,['readonly' => 'readonly', 'class' => 'form-control form-control-solid h-auto py-4 px-4 rounded-lg'. ($errors->has('email') ? ' is-invalid' : null)])}}
|
||||
@error('email')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.username') }}</label>
|
||||
{{ Form::text('username',null,['class' => 'form-control form-control-solid h-auto py-4 px-4 rounded-lg'. ($errors->has('username') ? ' is-invalid' : null)])}}
|
||||
@error('username')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group row">
|
||||
<div class="col-md-12">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.employee_id') }}</label>
|
||||
{{ Form::text('employee_id',null,['class' => 'form-control form-control-solid h-auto py-4 px-4 rounded-lg'. ($errors->has('employee_id') ? ' is-invalid' : null)])}}
|
||||
@error('employee_id')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Form group-->
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.password') }}</label>
|
||||
{{ Form::password('password',['class' => 'form-control form-control-solid h-auto py-4 px-4 rounded-lg'. ($errors->has('password') ? ' is-invalid' : null)])}}
|
||||
@error('password')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="font-size-h6 font-weight-bolder text-dark">{{ __('label.confirm_password') }}</label>
|
||||
{{ Form::password('password_confirmation',['class' => 'form-control form-control-solid h-auto py-4 px-4 rounded-lg'. ($errors->has('password_confirmation') ? ' is-invalid' : null)])}}
|
||||
@error('password_confirmation')
|
||||
<div class="fv-plugins-message-container">
|
||||
<div class="fv-help-block">
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Form group-->
|
||||
<!--begin::Action-->
|
||||
<div class="pb-lg-0 pb-5">
|
||||
{{ Form::submit(__('buttons.sign_up'),['class' => 'btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 mr-3'])}}
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Signin-->
|
||||
</div>
|
||||
<!--end::Signup-->
|
||||
</div>
|
||||
<!--end::Content body-->
|
||||
<!--begin::Content footer-->
|
||||
<div class="d-flex justify-content-lg-start justify-content-center align-items-end py-7 py-lg-0">
|
||||
<div class="text-dark-50 font-size-lg font-weight-bolder mr-10">
|
||||
<span class="mr-1">{{date('Y')}} © {{ app_name() }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Content footer-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Login-->
|
||||
@endsection
|
||||
30
resources/views/backend/auth/verify.blade.php
Normal file
30
resources/views/backend/auth/verify.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title',__('label.admin_verify_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card">
|
||||
<div class="card-header">{{ __('Verify Your Email Address') }}</div>
|
||||
|
||||
<div class="card-body">
|
||||
@if (session('resent'))
|
||||
<div class="alert alert-success" role="alert">
|
||||
{{ __('A fresh verification link has been sent to your email address.') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{ __('Before proceeding, please check your email for a verification link.') }}
|
||||
{{ __('If you did not receive the email') }},
|
||||
<form class="d-inline" method="POST" action="{{ route('verification.resend') }}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-link p-0 m-0 align-baseline">{{ __('click here to request another') }}</button>.
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
211
resources/views/backend/certificate/detail.blade.php
Normal file
211
resources/views/backend/certificate/detail.blade.php
Normal file
@@ -0,0 +1,211 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.view_certificate_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.certificates.index') }}" class="text-muted">{{ __('breadcrumb.certificate') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.view_certificate_request') }}
|
||||
</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">
|
||||
<form class="form" method="post" id="certificate_update" action="{{ route('admin.certificates.status.update',$details?->id) }}">
|
||||
@csrf
|
||||
<div class="card card-custom card-stretch">
|
||||
<!--begin::Header-->
|
||||
<div class="card-header py-3">
|
||||
<div class="card-title">
|
||||
<h3 class="card-label font-weight-bolder text-dark">{{ __('label.view_certificate_title') }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
|
||||
<!--begin::Form-->
|
||||
|
||||
<!--begin::Body-->
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Current Status :</label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">
|
||||
|
||||
@if ($details?->status === 0)
|
||||
<span class="label label-lg label-light-warning label-inline"> {{ __('label.pending') }}</span>
|
||||
@elseif ($details->status === 1)
|
||||
<span
|
||||
class="label label-lg label-light-success label-inline"> {{ __('label.approved') }}</span>
|
||||
@else
|
||||
<span class="label label-lg label-light-danger label-inline">{{ __('label.rejected') }}</span>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Hospital Name :</label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">{{ $details?->hospital?->name }}</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Full Name :</label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">{{ $details?->full_name }}</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Address :</label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">{{ $details?->address }}</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Email :</label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">{{ $details?->email }}</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Mobile :</label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">{{ $details?->user?->mobile }}</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Medical Problem :</label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">{{ $details?->medical_problem }}</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Aadhar Card Number : </label>
|
||||
<label class="col-lg-9 col-xl-6 col-form-label">{{ $details?->aadhar_card_number }}</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-xl-3 col-lg-3 col-form-label">Aadhar Card Photos :</label>
|
||||
<div class="col-lg-9 col-xl-6">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-xl-4">
|
||||
<!--begin::Overlay-->
|
||||
<a class="d-block overlay" data-fslightbox="lightbox-basic" href="{{ $details?->aadhar_card_front_photo }}">
|
||||
<!--begin::Image-->
|
||||
<div class="overlay-wrapper bgi-no-repeat bgi-position-center bgi-size-cover card-rounded min-h-175px"
|
||||
style="background-image:url({{ $details?->aadhar_card_front_photo }})">
|
||||
</div>
|
||||
<!--end::Image-->
|
||||
|
||||
<!--begin::Action-->
|
||||
<div class="overlay-layer card-rounded bg-dark bg-opacity-25 shadow">
|
||||
<i class="bi bi-eye-fill text-white fs-3x"></i>
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</a>
|
||||
<!--end::Overlay-->
|
||||
</div>
|
||||
<div class="col-lg-4 col-xl-4">
|
||||
<!--begin::Overlay-->
|
||||
<a class="d-block overlay" data-fslightbox="lightbox-basic" href="{{ $details?->aadhar_card_back_photo }}">
|
||||
<!--begin::Image-->
|
||||
<div class="overlay-wrapper bgi-no-repeat bgi-position-center bgi-size-cover card-rounded min-h-175px"
|
||||
style="background-image:url({{ $details?->aadhar_card_back_photo }})">
|
||||
</div>
|
||||
<!--end::Image-->
|
||||
|
||||
<!--begin::Action-->
|
||||
<div class="overlay-layer card-rounded bg-dark bg-opacity-25 shadow">
|
||||
<i class="bi bi-eye-fill text-white fs-3x"></i>
|
||||
</div>
|
||||
<!--end::Action-->
|
||||
</a>
|
||||
<!--end::Overlay-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if($details?->status === 0)
|
||||
<div class="form-group row">
|
||||
<div class="col-md-4">
|
||||
<div class="radio-inline">
|
||||
<label class="radio radio-success">
|
||||
<input type="radio" name="status" class="rejection" value="1"/>
|
||||
<span></span>
|
||||
Approved
|
||||
</label>
|
||||
<label class="radio radio-danger">
|
||||
<input type="radio" name="status" class="rejection" value="2"/>
|
||||
<span></span>
|
||||
Rejected
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" id="rejection_reason" style="display: none">
|
||||
<div class="col-md-4">
|
||||
<label>Rejection Reason :</label>
|
||||
<textarea name="rejection_reason" class="form-control reason"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
|
||||
<!--end::Form-->
|
||||
@if($details?->status === 0)
|
||||
<div class="card-footer">
|
||||
<button class="btn btn-success">Update</button>
|
||||
<a href="{{ route('admin.certificates.index') }}" class="btn btn-secondary">Cancel</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script src="{{ asset('plugins/custom/fslightbox/fslightbox.bundle.js') }}"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("#certificate_update").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
rejection_reason: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
$(document).on('change','.rejection',function(){
|
||||
$('#rejection_reason').hide();
|
||||
$('.reason').attr('required',false);
|
||||
if(parseInt($(this).val()) === 2){
|
||||
$('.reason').attr('required',true);
|
||||
$('#rejection_reason').show();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
209
resources/views/backend/certificate/list.blade.php
Normal file
209
resources/views/backend/certificate/list.blade.php
Normal file
@@ -0,0 +1,209 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_certificates_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 active">
|
||||
{{ __('breadcrumb.certificate') }}
|
||||
</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_certificates_table_title') }}</h3>
|
||||
</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('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','placeholder' => __('label.search')]) }}
|
||||
</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>
|
||||
<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="hospital-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.certificate_listing_heading_7') }}</th>
|
||||
<th>{{ __('label.certificate_listing_heading_1') }}</th>
|
||||
<th>{{ __('label.certificate_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.certificate_listing_heading_8') }}</th>
|
||||
<th>{{ __('label.certificate_listing_heading_3') }}</th>
|
||||
<th>{{ __('label.certificate_listing_heading_4') }}</th>
|
||||
<th>{{ __('label.certificate_listing_heading_5') }}</th>
|
||||
<th>{{ __('label.certificate_listing_heading_6') }}</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: '#hospital-table',
|
||||
listingUrl: "{{ route('admin.certificates.listing') }}",
|
||||
deleteUrl: "{{ route("admin.hospitals.destroy", ":id") }}",
|
||||
multipleActionUrl: "",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'hospital_name',
|
||||
name: 'hospital_name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'full_name',
|
||||
name: 'full_name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'email',
|
||||
name: 'email',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'mobile_number',
|
||||
name: 'mobile_number',
|
||||
searchable: false,
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'aadhar_card_number',
|
||||
name: 'aadhar_card_number',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'generated_date',
|
||||
name: 'generated_date',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'status',
|
||||
name: 'status',
|
||||
sortable: false,
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 0,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
186
resources/views/backend/certificate/pdf.blade.php
Normal file
186
resources/views/backend/certificate/pdf.blade.php
Normal file
@@ -0,0 +1,186 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Letter</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
|
||||
<body style="margin: 0">
|
||||
<div style="font-size:12px;line-height: 17px; font-family: Arial, sans-serif; color: #404040;">
|
||||
<div style="width: 100%; margin: auto;">
|
||||
<div>
|
||||
<img style="display: block; height: auto; margin: 0 auto;" src="{{ asset('public/images/pdf/logo.jpg') }}" alt="logo" width="700" height="34">
|
||||
</div>
|
||||
<div>
|
||||
<div style="margin-top: 16px;">
|
||||
<p style="margin: 0;">To,</p>
|
||||
<p style="margin: 8px 0 0;"><strong>Hospital / Centre Name:</strong> {{ $certificate?->hospital?->name }}</p>
|
||||
<p style="margin: 8px 0 0;"><strong>City:</strong> {{ $certificate?->hospital?->city }}</p>
|
||||
</div>
|
||||
<div style="margin-top: 24px;">
|
||||
<p style="margin: 0;"><strong>Subject: Request for Jain Health Care [JHC] Benefit as per the
|
||||
Agreement</strong></p>
|
||||
<p style="margin: 8px 0 0;">Dear Sir/Madam,</p>
|
||||
<p style="margin: 8px 0 0;">We request and recommend Jain Health Care (JHC) benefits for the following
|
||||
patient who belongs to our community.</p>
|
||||
</div>
|
||||
<div style="margin-top: 16px;">
|
||||
<table style="width: 100%;border-collapse: collapse;" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="font-weight: 600;border:solid 1px #404040; vertical-align: top;padding:6px 8px;width: 28%;">
|
||||
Patient's Full Name
|
||||
</td>
|
||||
<td style="border:solid 1px #404040; vertical-align: top;padding:6px 8px;">
|
||||
{{ $certificate?->full_name }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: 600;border:solid 1px #404040; vertical-align: top;padding:6px 8px;width: 28%;">
|
||||
Aadhar Card No.
|
||||
</td>
|
||||
<td style="border:solid 1px #404040; vertical-align: top;padding:6px 8px;">
|
||||
{{ $certificate?->aadhar_card_number }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: 600;border:solid 1px #404040; vertical-align: top;padding:6px 8px;width: 28%;">
|
||||
Cell No.
|
||||
</td>
|
||||
<td style="border:solid 1px #404040; vertical-align: top;padding:6px 8px;">
|
||||
{{ $certificate?->user?->mobile }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: 600;border:solid 1px #404040; vertical-align: top;padding:6px 8px;width: 28%;">
|
||||
Treatment
|
||||
</td>
|
||||
<td style="border:solid 1px #404040; vertical-align: top;padding:6px 8px;">
|
||||
{{ $certificate?->medical_problem }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: 600;border:solid 1px #404040; vertical-align: top;padding:6px 8px;width: 28%;">
|
||||
Issue Date & Time
|
||||
</td>
|
||||
<td style="border:solid 1px #404040; vertical-align: top;padding:6px 8px;">
|
||||
{{ $certificate?->generated_date }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: 600;border:solid 1px #404040; vertical-align: top;padding:6px 8px;width: 28%;">
|
||||
Expiration Date & Time
|
||||
</td>
|
||||
<td style="border:solid 1px #404040; vertical-align: top;padding:6px 8px;">
|
||||
{{ $expireDate ?? '-' }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: 600;border:solid 1px #404040; vertical-align: top;padding:6px 8px;width: 28%;">
|
||||
Request No
|
||||
</td>
|
||||
<td style="border:solid 1px #404040; vertical-align: top;padding:6px 8px;">
|
||||
{{ '#'.requestNumberFormat($certificate->id) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="margin-top: 16px;">
|
||||
<p style="margin: 0;"><strong>{{ $certificate?->full_name }}</strong> will present a letter from our Sangh along with a copy
|
||||
of their Aadhar card at your administration
|
||||
office.</p>
|
||||
</div>
|
||||
<div style="margin-top: 16px;">
|
||||
<table style="width: 100%;" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="2">Thank you for your cooperation.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<strong>Shree Mumbai Jain Sangh Sangathan Sangh</strong>
|
||||
</td>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<strong>Shree Evershine Paradise S.M.T Jain</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<img style="display: block; width: 130px; height: auto;" src="{{ asset('public/images/pdf/sing-1.jpg') }}" alt="sign" width="135"
|
||||
height="80">
|
||||
</td>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<img style="display: block; width: 130px; height: auto;" src="{{ asset('public/images/pdf/sing-2.jpg') }}" alt="sign" width="135"
|
||||
height="80">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<strong>Authorized Signatory Signatory</strong>
|
||||
</td>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<strong>Authorized</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<strong>Mr. Nitin Vora</strong>
|
||||
</td>
|
||||
<td style="vertical-align: top;padding: 4px 0;width: 60%;">
|
||||
<strong>Mr. Bakul Jhaveri</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="margin-top: 20px;">
|
||||
<p style="margin: 0;"><strong>Note:</strong></p>
|
||||
<ul style="padding: 0 0 0 14px;margin: 12px 0 0;">
|
||||
<li style="font-size: 12px;">This letter is digitally signed & system generated.</li>
|
||||
<li style="font-size: 12px;">This letter is valid for 48 hours from the date of issuance.</li>
|
||||
<li style="font-size: 12px;">If the treatment is covered under medical insurance, benefits may not be
|
||||
applicable.</li>
|
||||
<li style="font-size: 12px;">Trust is not responsible for any financial liability related to any
|
||||
treatment.</li>
|
||||
<li style="font-size: 12px;">The final decision on benefits rests with the hospital management.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div style="margin-top: 35px;">
|
||||
<table
|
||||
style="font-size: 11px;line-height: 16px; color: #bd5915;width: 100%; text-align: center; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td style="padding-right: 8px;vertical-align: top">
|
||||
<P style="margin: 0;font-weight: 500;">Shree Mumbai jain Sangh Sangathan</P>
|
||||
<p style="margin: 4px 0 0;padding-top: 4px; font-weight: 500;border-top: solid 1px #bd5915;"> Trust
|
||||
Registration No.: E-39965
|
||||
(M) PAN No. ABDT 50760R URN
|
||||
80G :
|
||||
ABDT50760RF20221
|
||||
</p>
|
||||
<p style="margin:4px 0 0;">Regd. Add.: 301/302, krishna Chambers, Plot No.3, 59 New Marine Lines,
|
||||
Mumbai 400 026 INDIA</p>
|
||||
<p style="margin:4px 0 0;">Email: <a style="color: #03a9f4;"
|
||||
href="mailto:srijainsanghathan@gmail.com">srijainsanghathan@gmail.com</a></p>
|
||||
</td>
|
||||
<td style="padding-left: 8px;vertical-align: top;">
|
||||
<p style="margin: 0;font-weight: 500;">Shree Evershine Paradise Shwetamber Murtipujak Tapagachha Sangh
|
||||
</p>
|
||||
<p style="margin: 4px 0 0;padding-top: 4px; font-weight: 500;border-top: solid 1px #bd5915;">
|
||||
Registration No.: E-19926
|
||||
(Mumbai) dt. 14.01.2002 PAN : AACT55325G
|
||||
</p>
|
||||
<p style="margin:4px 0 0;">120, Feet Road, Thakur Village, Opp. Viceroy Court, kandivali(East), Mumbai
|
||||
- 400
|
||||
101</p>
|
||||
<p style="margin: 4px 0 0;">Email: <a style="color: #03a9f4;"
|
||||
href="mailto:arhamvasuphujya@gmail.com">arhamvasuphujya@gmail.com</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
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>
|
||||
92
resources/views/backend/dashboard.blade.php
Normal file
92
resources/views/backend/dashboard.blade.php
Normal file
@@ -0,0 +1,92 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.admin_dashboard_title').' | '.env('APP_NAME'))
|
||||
|
||||
@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">
|
||||
{{ __('breadcrumb.dashboard') }}
|
||||
</li>
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
</div>
|
||||
<!--end::Page Heading-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="d-flex flex-column-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xl-4">
|
||||
<!--begin::Stats Widget 30-->
|
||||
<div class="card card-custom bg-info card-stretch gutter-b">
|
||||
<!--begin::Body-->
|
||||
<div class="card-body">
|
||||
<span class="svg-icon svg-icon-2x svg-icon-white">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Communication/Group.svg-->
|
||||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAFOklEQVRoge2WXWwUVRTH/2e2fLnUtkprU/siiVZf/EhLjImlTUR8aVMSg5gaNJjAo0mJhKREfaGEYLJPJiALMVEfMBjS8BETCTXCgwh9gBgSUpAGS3wBrUhVVvaevw+zOzszu3NnJqzhZU8y2dl7z5zz+9975swFGtawhjXsQZr8H0Gfn5ofEcMxJfqoBJXn1TB3abj9WL1z1V1A76nfd6tiuxIowUO9X+y6vK5jRz3z1VVAaeUnI+DdX8PhK+s7j9crp1OvQABQKptoeCVIbq1nzqYkTl352RFVGaNhn5Kg4jyI3K33VgZqWoleK7x79YXjN286NOKQY6T2CRUgzzswufkvNsW+M7E70Ll/dreqTFI5oGSWiizJQVUebcldnfD7JoCHKhiAf/er3UJOkjog1CyoWaEZhOrRttH8BGLMKqArPzsCyvYKBEB3B6BKgBhv3jMz5BMwHQMPktMe/KZDI6K6HVS4K+/++u7HV2zYO1SbLoEAVRmLgme51n01rYY5K7x7n/OSk2MWeAgVpFrfGasAKnpt8O6ceDV9abj9mCp2RcEb5c7rG7tPePGpvTZ4qEJY/c6k2AGNgQdIBmr68rqOHWo4TOV3VC6oYoHkFMmhube7P/D7xsMrhIawmLULUTFNctACDyqmw8+V+nx8ryenhToYDa8QmKr4frN3ISIXAw81krPGsCY3ORs8aKBqrPFjv8QtuasTIMZrwVO58+6HTwfKovfUH2sVXC9gPyDdpTRzgJ5ROocvrGk96fdvG81PCHW8FjyoO28eeT8QP7UAAGjeMzNEcquqrIILf06N5AofPeW9kH1Tf/YoTR5AP4hgs/cPCE4rzOaLa9pnyrMrNuwdInWrUFeVyuacqsndOrLtBGKsLmehF76dH4CDSQCtCNGz6gYAMG8o6356re30/ea+bwHPTt3syZjMWQCtEbDuX1ZNzIuYFy+s7bhyP/ljz0Jdn15bSzjrSfYT6IYCIOf0n9s/QAtfO8XMNgKtMbDhjQGANjJzoPmtTz6GWfa6LF32EoBukAA4J9QzUDl8+8uNJ2GxyB3oOnith0bypPSD9JhIgKYIXZjH4sw9dDz3TBJYb4Ahh1+Pf4PCb3/BWZIFxAFAiCsCICHEaeNg853P35kJhwQi2mjn/tkBGudsTXgSLN4DC3fxUPsjAEstNnQF/N0jB+g5VPyyK58AincBLVbDu2JXZ1TPto4eWJ1IQNfBaz0CmSTRWgsecHeA5h4WtzSngq0WSCztfAxUA6qphq/8bxNxJh8e/ezJWAE0zj4rPAGogmqQWbQoFWz4AoGmbBaggaiJgoeAALUtg+IBq4Cu/PVXSQxa4QlQFVACTiYVbC2ByDS5Hy4YCzzL5bX60Tf3vRIpgOSGWPjySgOpYcs7FfT3ksfBAyAIvOFnDrRRKl9OCu+fLz1S84aBsaBPxTUZfGk88DIHBUAer3QVOzzgW700sF7QyngKeIDsjhQAcnki+JDINLDVDj6feHgAXB4pIA18GSQ1bMCNgcEE8IEcNQQkhw+ITQ0bFpkcXmARkAa+xmIkg60xnQo+lLOqhJLBV44PaWGrVPvGksHbdiANfGkgPWytSku68mW/CAGp4H18qWC9Zyoz6eDjdiAxPINtNCFs2MlrA0nhrTuQBN5fZgw9nAS2lspU8MEAobMQbiSCRwaAoFgoIPk5qBwreJk7CxAB3O9xEnjORQoAuYXEjbiVR2YRZOly3P75F5jCv4lhqQgINAsL+PvH7yFNSwDHSQavsiW8hw1rWMMa9uDsP5gxNgd7g8YbAAAAAElFTkSuQmCC"/>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="card-title font-weight-bolder text-white font-size-h2 mb-0 mt-6 d-block">{!!
|
||||
$data['statistics']['shravak'] ?? 0 !!}</span>
|
||||
<span class="font-weight-bold text-white font-size-sm">Total Shravak</span>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Stats Widget 30-->
|
||||
</div>
|
||||
<div class="col-xl-4">
|
||||
<!--begin::Stats Widget 31-->
|
||||
<div class="card card-custom bg-danger card-stretch gutter-b">
|
||||
<!--begin::Body-->
|
||||
<div class="card-body">
|
||||
<span class="svg-icon svg-icon-2x svg-icon-white">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Media/Equalizer.svg-->
|
||||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAKD0lEQVRogd2af4xcVRXHP+fO7LJtWYqUQunO1oJA+RGKuMy+96YtbjGBQgyIodgQtRICAkaQH+WHoAiCChIFDA2mIJQAgpUQJCkFIwywnTdvlgFabKFFULdjgQJl6Q926cy7xz92lkyHmXmvxqTi96+de7/3nPO97717zz134f8EMvZHJpP5orX2BGCf3RjPrmCztfbJQqGwCqpCHMe5VERuAJ4WkdJuDS8mVDUFHA/8MJ/P/1rS6fSRiUTiBWvtCYVCod/zvBlbtmx5c82aNTt2d7BNYFzXnbF169Y3Jk6c6FprnwS+ZBKJxPGAXygUnvc8705VXdvZ2fnSSSedtMfujrgRXNd9Eljb2dn5TC6Xex7wReQrSRGZrKqbAFT1a8DNwOVDQ0MHAq+1MppOp6ckEonDRGQysHXHjh2risXiW3EC6unpOaC9vf1ooBPYZK19LQiCd1qNOfLII9uBuSLyC1Vd1NfXN2FkZGQTsF+yjnsDcA1wt+/765sEMLG9vf0sVf0OMBN4V1WHRKSzra3tANd1syJyhe/7hUbjXdd1gJuALwNvqepWYG8Rmew4zirgXuCeIAi21I9ds2bNDsdxrhOR84GbstnsNtd1ARDP865X1UPz+fyCVrMBiOM454jIjdUAfmut/dPAwMCGmiCnAxcCF6jqN4Mg+GOtAcdxTheR+4HFxpjbcrncP8f60ul0dzKZPFVVvwvsr6rXBEGwBNBWQbmu+5CIrI8lxPO8fVR1KdArIot8378fsC34Z6rqXdba4wqFwgsAmUwmba19VkTO9n3/9y1iM67rfovRVzxIJpML+/v7P4gSYuoaf9rb23tgbZvjOPur6jNAp6rO9H3/vlYiAHzff1BVf2eMuX6szVp7PXBXhAgAm8/nl4ZheLSqTqxUKs9kMpn9IsawkxBVtcaYTx6l53njRGS5iGzo6OiYF/Ux7mTYmFuBeT09PfvOmTNnMnBiGIa3xh0/MDDwtjFmHrDRWru8r6+vI7YQEfl7W1vb9pqmWwHZvn37N7LZ7Egt13GcvTzP62pm2Pf9N4CRZDL5+TAMpwPDAwMDb9bzXNed7nnec67rbnYc58GZM2dOqLEx3NHRcQaQHB4ebjkJpu73tZVKxYHRd1pVF4rIwtWrV9eKw3Gcc0XkXVUtua77yPz58xP1hufPn28AERENw9AC0ogH3K6q20RkvogcNX78+EW1ndlsdpuqfltEzurt7T02rpBPYK1dJCJLfd9/pba9r6+vQ0RuF5EFiUSiS0S8Uql0Sv34Uql0CNBeLpdfq1QqrwJ7bNy48eB6nqoeCjzs+/5fVPUJ4Ih6ThAEq4GlxpjLd0nI7NmzPwecaq29o0F3B9BurV03derUd1R1SFX3qidZa+cDuWKx+FGxWPwI8MMwPL2BvYeBm13XvVdELlDVPzQM1JjFwCnV2OIJKZfLxwIfVGdiJ2Sz2SERWSIi/aVSaT2QUNVHaznVp3YucNdYm6reDZxbn/oEQfATVb0S2K6qZ9TvPWPI5XKrgK2VSqUnthAROQxY26gPwPf986y1p6vqVR0dHT31u/DIyMiFwHC5XH5wrG3btm0PAOXNmzd/v86cBkFwTz6f/14QBMub+WR0Y1xTje1TqE9RRkeoGqBV9quFQuHpRh2O4xwCXAssKBaL5bH2anpxqYg84DjOY0EQvN7CfjPsqMb2KTR7Ih+KyAG76qW6Ki0FluXz+cfr+4MgeExVHxGRe5usYFGYIiJDjTqaCSkCR3ieN25XvAwODl4sIqlyuXxRM864ceMuAqYNDg7+YFds9/T0jAcOF5EXG/XX7+xD1tqhVCq1Fhiy1s6N6yidTk8RketU9bxisfhhM142mx0CLhCR69Pp9JS49tvb248DPuzq6nq1Uf9OQqZNm3ZsEAT9y5YtC1V1uYgcF9eRMeYSIIj4YAHI5/OPq+oLiUTi4rj2gXmq+tSyZcvChv5rf9SSVPWScrl8S0wnIiILVHVx3KhE5A7gTGoKIK2gqicDTSep6c5eKBTeLxaL78VxkslkXGDS8PDwE3H4AB0dHcuBSa7r9kZxq+ecgxOJxFPNOE2F7ArCMDwNWFGfk7VCNpvdBqwAvh6DPktV1+dyuU3NCC2FuK57jeM4N0d5EZFe4NkYAe0EVX0WSMegZkSkvxWhpRBV/UBEZsVwdLiIrInBq8da4PAYPAfItyJECVkNHEX0B7l3GIaxvqdaiMj7wKcSznoaMENV/9qK1FLI+PHjXwE6e3t7p0fHJC2LBE0GKdByh3ccpwvY0xjTsKozhpZCqpvXoDHmqIiYNgH7R3AaYT/g7VYEY8wM4F3f9ze35MVw9oaqHhjBeZXRGtcuQVWPro5tCmvtDGBdlK04Qt4ierafFZGvxrBVj5NF5LlWBBE5GIjMlGMJEZGWOVEYhkuB2ZlM5gsx7AFQLTvNSiQSD0RQ96kuCi0RKURV3wP2bcWpVhv/bK29NMreGETkCmBFf3//YARvgqpui7IX54lUaHIAq3N4NXC253nHRHE9zztGRM4yxvwoiquqe/5XhIhIKCKRhyDf918C7gYiE01V/RVwdy6XezmKCySNMQ0z3lrEebX2tNZ+FMMhInKjqval0+mDmnGq39GcRCJxQxybwBaiN81oIcaYvUSk6UGpFr7v/wv4mzGm6esVhuExwOsrV67cGMcmsNVau2dknFEEVd3BaC0rLj4G2po6NKaN1oWNeowTkY+jSHGEvAjMjsOtVs1nGGOabmCqug6Y0dfXFznL1QLFbOClKG5kcJVK5QmgzXGchVFca+05wJu+7zf9iPP5/EvA4PDw8HlR9kql0kLAiEjkgS1SSLXcebmILM5kMk3P8I7jzAV+DFxB61smFZErRORGz/O+3IzkeV6vqt6qqot83x+OijPR3d09F5hUKpUalioBSqXSqq6urnbgzu7u7r2nTZu2asOGDdurDvdJpVJXi8hi4IZ8Pr8kymmpVHotlUolgDtTqVTH9OnTXx4cHBwBmDNnzuSurq7LVPUu4JdBEPymla1UKnW6iLy/09Wb67qXANcBz3R3d59WX7FwHOdk4EYRmQlsAMrAdBFZp6pXNSrKtYLruqcAPwcOBf7B6CLRDbwsIlf7vr+iwZhbgPOBB/L5/LkN7xBd130LuA+4LAzDmQMDAw1Pfel0+qBkMnmEtTZhjFnn+37La+wYgg5X1UONMWGlUlnb6EIIRq+nOzs7R0TkJlW9MpFI7BWG4RIRWZ9U1XcZXRlQ1YdE5HKgOGHChKYrT9VRQ2f/CfL5/KtEpPMwWj92XffRavX+8ZUrV251XXc/oF8cxzlCRIrGmBNzudxz6XR6irX2/doC9P8aZs2aNXXq1KnvlEql2aq6QkSOEQDXdS8GfsZn659quoG5qnplEAS3fVJU8DzvKEbLkpN2X3jxUT2jrKi/GvzM49+8NWZf3jSLgAAAAABJRU5ErkJggg==">
|
||||
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="card-title font-weight-bolder text-white font-size-h2 mb-0 mt-6 d-block">{!!
|
||||
$data['statistics']['sampraday'] ?? 0 !!}</span>
|
||||
<span class="font-weight-bold text-white font-size-sm">Total Sampraday</span>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Stats Widget 31-->
|
||||
</div>
|
||||
<div class="col-xl-4">
|
||||
<!--begin::Stats Widget 32-->
|
||||
<div class="card card-custom bg-success card-stretch gutter-b">
|
||||
<!--begin::Body-->
|
||||
<div class="card-body">
|
||||
<span class="svg-icon svg-icon-2x svg-icon-white">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Communication/Group-chat.svg-->
|
||||
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAJ3klEQVRogc2Za4xdVRXHf2vvc+5jpp3O1HZ4TLHBWmyV2iLGiNIQowmhoYIEE3lEUBL1k5r4QIwfGo1C1ZgYPyhKqDFaEOMDJfgOqFjwERRfiRBAwALt0ALTedx7z95r+eE87rnT4WHm2rqTnXPPOXvv9f+v9V9r332vMKT22A++sMWwO7NeN9PQ+411Olef9u7rHgL4x55PbGw2G5+RNN2epI2UJDnnped/4G/DsJsMY5F8pWQHGlcnjSYRLrYRd+Yj39r1FrfQcd1m4+eSput92gDnEGMH8P9FQIRNOAeAS1NCz07tie6WFSMO59ZLkiDO5V3YNCy7w4uAyKb8Ijjv8d4RzJ1jJi5xCd57RATy/n9IwMkmUTARwCEuQVxcAyDOgzgQKUkMjYAbxiLTP7n+JBE3XngXEUGc4JwTJ07ESd37iHMTB37xtROGYXsoEQhJsknMwIzewhwWDfEADgRC6EG3hzihuXIMcQ51tgk4sFzbQ4mAS2STOEfW6+X3jRSiYiFDQw9CxDdSEMi6XcQ5nLihyGgoBMTZZhGHZQGXpKSNJkl7BAUU8O0RkkYTnzQgRkQc4tzmYdgeUhL7rSIRMHzaAu8AI00bmBnOJ+A9gmDdhTwfnHv1MCwvOwJmJiKyBSc4J/gkBQTBVUkLeU/TJL93giBbl42eIRB45p6b14tzE2JFCXUO5wRxrn/v82dallIDcW71od/fdMpxJ4DIVhC683P4JMF5IS9B0l/dAMk3N+8TsoV5QJBo25ZrfhhJvFUELMtIWu18SREQEBxGHgWKDc632mjWy4d4v2wZDYUAgGG4NB3QfaEgzKieJ40GasVM4/gTMMlBiDikSNbyWjUZfOYkvxrHWUKz9+w9AWwDRMS5HGApHyeYCRjF1wj6FckLhgK24ch935s8bgSCT7Zj0DkyT9JqYVL6WJYYncfABHyjSXdmFgwJ3Xj2cjAsi4CZbTdTLEZ82gTLC47leHPYIuQZUjw3SBptNEbMFIjbjx8B1bPNDN9sVuDyFzkTU0O1ZFW8LG6TVgszQ9WOTwQO3fPNMTPdiio+TcEMK3qFUgwTq1xfvTfL56iC6bbpu25decwJoHKWqXozw1QxyzumoIZZKCJh1TOsPy6fY5hq4pK51x9zAqp6rmkBROuADNMIaqhFTBVUMY35u5JwrRPDucecgGk83zSiGguPWimJHCSAGqKglNIpyRhmms/VSIx64TEl8OQdN5xuqhs11rxYANfC46KKYSh94FpECevPK9bYcOjXN77ymBEQuDyXRA1IIRPKe4uVnMqxpZR0sfQ0kgW9/JgQsF27nEa9LPdcjUQpjyJJNYv5sdJiVfMHxtTAa1RQfafdcov/nxN44g0nXGYa1w140qzyPKpozDCLeQUqoqAxDIwpk1mrqMSpJ8afuuS/xbPUnv+c7cmffnkyoPeiNgVUtb+6Qq7p0ANVstADFO8bOJ8gSQPnPWDVzyzVzy0ATvb7GM84acf7p18spuc9E6/e9cCYj+7ekMWpV50wuzPovuswm7IC/GISGmPpTVStKptODJWIixlqivM+3+co9zjLyUSbiuJ+/MbP/+maf0yP/jBp+P3R62sO79o481wYnzMC6z/3r1OPPBPu7c5l42iknZrd/oa75aTmQjWm7v0yWSsSZmi3OLikKc45xHmc94grej0KRTvQa3HevrNsvucE52m20yPjK1uvfejj6+5fCueSObD5hsfXzxwKf+/O9saJAdFIZyGTi+95DbPBLdqMIhYDGmvgYwSNIJJvxIveacznDBYBYy44Ltp3JgvzQUQjxEB3vrfy6SOd+06//tENL4rAlj1PbmkkyV0Tk802FhGNoAE0cPjZjIv2nUkWtQJRB1R9DiGXDzpnYnOmhoXnGFt8jiHw9rvP4PBMVtkTjWCR8Zc0Wr7RumvL16fPfF4CZ9x44C0Od5dFW9dekTK+pp17svSoRh57KuPK321BY1jUCzAh/w5kagj8W2B/KTcNoQZ+cP7lv9/Gw9N9O6XN8TVtRsYamNqJDrtz256DO5YksO3Gg1eoyO2qNhajEaMxOjHCyKpWf1HNI/Ln/fDh+zYfDaQAn/9PYAB3Andglp/YChKLiV/z11fwl/1WRLvf22MtRidGKPFotBUm3Lrt69PvKXF7gK17Dl6N8CWN5ouBaDRiVNJWg2yhh3Y6iPUXf+iwoyNNXrdqGov5Dgz0E9Jsv/rRyxZS+XWq8R0iMlalaq1yfeXhl/Htf45VHhVy7o3RNiunJopnUn/vRNh54oUfaR/4wWd/6bfuOXgD8FGNJrEGXEPJOj98xLl5rNeFGom/Hmyyum1sXllUOSmOjWbTqLxv85W7/nj9d+888sG3velhNX2z8zJSK57c+vgUX/zLmuqeArxvNVkxNTmocOkTEUCcnH3in+fXOYyrYjDyrsRQB19cDdLJScRLkWC5lCxm7P7TWvYdXl36DsPu9w27YNO7P31rafvlV3zy+77h3qqq9+cHfscfnp7g2nsnKascRbEQJzTWThJVBjHU8JV4Ma5ysfB4jFoNjtGqQVpMMhP8mikwQYoqgQYs6/Gh367jwdkWmN0RdfycjZdee/fiarHx0k/dHbOFs1TtZ4/OtfnAb09Bs26t4oQ8KdeejOEKR/bB1vKgwhujIZu//IRpXOTxaGgxYPCZEefmcAcfhJgNJFya+NBrT5x05KadTy0GX28rL/nRmkbnmcezLKQ4T9V9ik5uwI+O4rzgvOAHrm6JZ4JbzExLdqEehb7ELG2hEyfnSVurTKGzkDD3zHXPBx6A+ZnPhoX5dLDiKDpxMpa2KolozX4egT62ulLcUtoazAGtenVwaa1Ax9ZW4NGIOT8vGna/EH6JvWvN+fn6XB1bi7VWVAedus3BHDg6V12ppbpcjkro0D8uohFChrbHsPaqHLxPDmWj6Wkzt73rgRciMHPbux7QZuNUc+lBNGIjq9D2GIRCksWZoR+FmnPrGAvnuqPDdXSYsBr42MNiD2KPOLIKbY3umxl59pSF71yx/wXlU7TZ77/z4IzNvjS2V/wqtlcNrFmRsMWOXUIlwZCpzzxiff0Xg0ORtNo/z6IBYobFkBsKPSzr7V7Yu+NjLxb4Uq196W1XS9q6lqQh+AbiE/ApuKT4WT7/c8R5wSdSS/A8qZ0ukkoVqipJc/AWMyxmELpY1g1knfcuFzzAwt7zd2u2cKVl3YzQ7dvRUBUKVV1U2q0qsy7WpFJ636L2NR+z/IQVSq93ZyV0Lpjfe/5Xlwu+bJ29O79hvc55FrrPVnZCLy/V5Tm6qIyDOWCLc6BfaSrwsVgo9LCs84T0uufM7915+7DAVyRu3vlLF7PtlnX+TQG+sl3gMe3nQYn5P+320F597JWqAAAAAElFTkSuQmCC"/>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span
|
||||
class="card-title font-weight-bolder text-white font-size-h2 mb-0 mt-6 text-hover-primary d-block">{!!
|
||||
$data['statistics']['sant'] ?? 0 !!}</span>
|
||||
<span class="font-weight-bold text-white font-size-sm">Total Sant</span>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
<!--end::Stats Widget 32-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
92
resources/views/backend/dharma/create.blade.php
Normal file
92
resources/views/backend/dharma/create.blade.php
Normal file
@@ -0,0 +1,92 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_dharma_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.dharma.index') }}" class="text-muted">{{ __('breadcrumb.dharmas') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.add_dharma') }}
|
||||
</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_dharma_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.dharma.store','id' => 'createDharmaForm', 'files' => true]) }}
|
||||
@include('backend.dharma.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createDharmaForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
90
resources/views/backend/dharma/edit.blade.php
Normal file
90
resources/views/backend/dharma/edit.blade.php
Normal file
@@ -0,0 +1,90 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_dharma_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">
|
||||
<a href="{{ route('admin.dharma.index') }}" class="text-muted">{{ __('breadcrumb.dharmas') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="javascript:void(0);" class="text-muted">{{ __('breadcrumb.update_dharma') }}</a>
|
||||
</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_dharma_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($dharma,['route' => ['admin.dharma.update', $dharma->id],'method' => 'PATCH','id' => 'updatedharmaForm', 'files' => true]) }}
|
||||
@include('backend.dharma.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
$("#updatedharmaForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
this.element(element);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
});
|
||||
</script>
|
||||
<script src="{{ asset('/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
@endsection
|
||||
186
resources/views/backend/dharma/list.blade.php
Normal file
186
resources/views/backend/dharma/list.blade.php
Normal file
@@ -0,0 +1,186 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_dharma_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 active">
|
||||
{{ __('breadcrumb.dharmas') }}
|
||||
</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_dharma_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.dharma.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_dharma') }}
|
||||
</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('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','placeholder' => __('label.search')]) }}
|
||||
</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>
|
||||
<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.dharma_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.created_at') }}</th>
|
||||
<th>{{ __('label.dharma_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.dharma.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.dharma.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.dharma.grid.records.action') }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'created_at',
|
||||
name: 'created_at',
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 1,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
24
resources/views/backend/dharma/partials/_form.blade.php
Normal file
24
resources/views/backend/dharma/partials/_form.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.dharma_form_name') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.dharma_name')]) }}
|
||||
@error('name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</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.dharma.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.dharma.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
92
resources/views/backend/hospital/create.blade.php
Normal file
92
resources/views/backend/hospital/create.blade.php
Normal file
@@ -0,0 +1,92 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_hospital_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.hospitals.index') }}" class="text-muted">{{ __('breadcrumb.hospital') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.add_hospital') }}
|
||||
</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_hospital_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.hospitals.store','id' => 'createHospitalForm', 'files' => true]) }}
|
||||
@include('backend.hospital.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createDharmaForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
116
resources/views/backend/hospital/edit.blade.php
Normal file
116
resources/views/backend/hospital/edit.blade.php
Normal file
@@ -0,0 +1,116 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_hospital_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">
|
||||
<a href="{{ route('admin.hospitals.index') }}"
|
||||
class="text-muted">{{ __('breadcrumb.hospital') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="javascript:void(0);" class="text-muted">{{ __('breadcrumb.update_hospital') }}</a>
|
||||
</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_hospital_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($hospital,['route' => ['admin.hospitals.update', $hospital->id],'method' => 'PATCH','id' => 'updatehospitalForm', 'files' => true]) }}
|
||||
@include('backend.hospital.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function hospitalUpdateValidation() {
|
||||
|
||||
$("#updatehospitalForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function (value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
},
|
||||
contact_name : {
|
||||
required:true,
|
||||
},
|
||||
email:{
|
||||
required:true
|
||||
},
|
||||
number: {
|
||||
required:true
|
||||
},
|
||||
city : {
|
||||
required:true
|
||||
},
|
||||
state : {
|
||||
required:true
|
||||
},
|
||||
address : {
|
||||
required:true
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('dropdown')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
hospitalUpdateValidation();
|
||||
});
|
||||
</script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
@endsection
|
||||
216
resources/views/backend/hospital/list.blade.php
Normal file
216
resources/views/backend/hospital/list.blade.php
Normal file
@@ -0,0 +1,216 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_hospital_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 active">
|
||||
{{ __('breadcrumb.hospital') }}
|
||||
</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_hospital_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.hospitals.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_hospital') }}
|
||||
</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('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','placeholder' => __('label.search')]) }}
|
||||
</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>
|
||||
<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="hospital-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.hospital_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.hospital_listing_heading_3') }}</th>
|
||||
<th>{{ __('label.hospital_listing_heading_4') }}</th>
|
||||
<th>{{ __('label.hospital_listing_heading_5') }}</th>
|
||||
<th>{{ __('label.hospital_listing_heading_6') }}</th>
|
||||
<th>{{ __('label.hospital_listing_heading_8') }}</th>
|
||||
<th>{{ __('label.hospital_listing_heading_7') }}</th>
|
||||
<th>{{ __('label.hospital_listing_heading_9') }}</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: '#hospital-table',
|
||||
listingUrl: "{{ route('admin.hospitals.listing') }}",
|
||||
deleteUrl: "{{ route("admin.hospitals.destroy", ":id") }}",
|
||||
multipleActionUrl: "",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'contact_name',
|
||||
name: 'contact_name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'email',
|
||||
name: 'email',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'city',
|
||||
name: 'city',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'state',
|
||||
name: 'state',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'hospital_status',
|
||||
name: 'hospital_status',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'created_at',
|
||||
name: 'created_at',
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 7,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
112
resources/views/backend/hospital/partials/_form.blade.php
Normal file
112
resources/views/backend/hospital/partials/_form.blade.php
Normal file
@@ -0,0 +1,112 @@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_name') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_contact') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('contact_name',null,['class' => $errors->has('contact_name') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('contact_name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_email') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::email('email',null,['class' => $errors->has('email') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('email')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_alter_email') }}</label>
|
||||
{{ Form::email('alter_email',null,['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_photo') }} <span class="text-danger">*</span></label><br/>
|
||||
{{ Form::file('photo',null,['class' => $errors->has('photo') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('photo')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_number') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('number',null,['class' => $errors->has('number') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('number')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_city') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('city',null,['class' => $errors->has('city') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('city')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_state') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('state',null,['class' => $errors->has('state') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('state')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.area') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('area',null,['class' => $errors->has('area') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('area')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_address') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::textarea('address',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control']) }}
|
||||
@error('address')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>{{ __('label.hospital_form_benefits') }}</label>
|
||||
{{ Form::textarea('benefits',null,['class' => 'form-control']) }}
|
||||
</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.hospitals.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.hospitals.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
|
||||
24
resources/views/backend/includes/breadcrumb.blade.php
Normal file
24
resources/views/backend/includes/breadcrumb.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<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">
|
||||
<a href="" class="text-muted">{!! trans('label.home') !!}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
<a href="" class="text-muted">Dashboard</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
</div>
|
||||
<!--end::Page Heading-->
|
||||
</div>
|
||||
<!--end::Info-->
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
@if(Session::has('success'))
|
||||
<p class="alert alert-success">{{ Session::get('message') }}</p>
|
||||
@endif
|
||||
|
||||
@if(Session::has('error'))
|
||||
<p class="alert alert-danger">{{ Session::get('message') }}</p>
|
||||
@endif
|
||||
14
resources/views/backend/includes/footer.blade.php
Normal file
14
resources/views/backend/includes/footer.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<!--begin::Footer-->
|
||||
<div class="footer bg-white py-4 d-flex flex-lg-column" id="kt_footer">
|
||||
<!--begin::Container-->
|
||||
<div class="container-fluid d-flex flex-column flex-md-row align-items-center justify-content-between">
|
||||
<!--begin::Copyright-->
|
||||
<div class="text-dark order-2 order-md-1">
|
||||
<span class="text-muted font-weight-bold mr-2">{{date('Y')}} ©</span>
|
||||
<a target="_blank" class="text-dark-75 text-hover-primary">{{ app_name()}}</a>
|
||||
</div>
|
||||
<!--end::Copyright-->
|
||||
</div>
|
||||
<!--end::Container-->
|
||||
</div>
|
||||
<!--end::Footer-->
|
||||
718
resources/views/backend/includes/header.blade.php
Normal file
718
resources/views/backend/includes/header.blade.php
Normal file
@@ -0,0 +1,718 @@
|
||||
<!--begin::Header-->
|
||||
<div id="kt_header" class="header header-fixed">
|
||||
<!--begin::Container-->
|
||||
<div class="container-fluid d-flex align-items-stretch justify-content-between">
|
||||
<!--begin::Header Menu Wrapper-->
|
||||
<div class="header-menu-wrapper header-menu-wrapper-left" id="kt_header_menu_wrapper"></div>
|
||||
<!--end::Header Menu Wrapper-->
|
||||
<!--begin::Topbar-->
|
||||
<div class="topbar">
|
||||
<!--begin::Search-->
|
||||
<div class="dropdown" id="kt_quick_search_toggle">
|
||||
<!--begin::Toggle-->
|
||||
<div class="topbar-item" data-toggle="dropdown" data-offset="10px,0px">
|
||||
<div class="btn btn-icon btn-clean btn-lg btn-dropdown mr-1">
|
||||
<span class="svg-icon svg-icon-xl svg-icon-primary">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/General/Search.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24" />
|
||||
<path d="M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
|
||||
<path d="M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z" fill="#000000" fill-rule="nonzero" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Toggle-->
|
||||
<!--begin::Dropdown-->
|
||||
<div class="dropdown-menu p-0 m-0 dropdown-menu-right dropdown-menu-anim-up dropdown-menu-lg">
|
||||
<div class="quick-search quick-search-dropdown" id="kt_quick_search_dropdown">
|
||||
<!--begin:Form-->
|
||||
<form method="get" class="quick-search-form">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<span class="svg-icon svg-icon-lg">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/General/Search.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24" />
|
||||
<path d="M14.2928932,16.7071068 C13.9023689,16.3165825 13.9023689,15.6834175 14.2928932,15.2928932 C14.6834175,14.9023689 15.3165825,14.9023689 15.7071068,15.2928932 L19.7071068,19.2928932 C20.0976311,19.6834175 20.0976311,20.3165825 19.7071068,20.7071068 C19.3165825,21.0976311 18.6834175,21.0976311 18.2928932,20.7071068 L14.2928932,16.7071068 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
|
||||
<path d="M11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 Z M11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 C14.8659932,4 18,7.13400675 18,11 C18,14.8659932 14.8659932,18 11,18 Z" fill="#000000" fill-rule="nonzero" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" class="form-control" placeholder="Search..." />
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">
|
||||
<i class="quick-search-close ki ki-close icon-sm text-muted"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
<!--begin::Scroll-->
|
||||
<div class="quick-search-wrapper scroll" data-scroll="true" data-height="325" data-mobile-height="200"></div>
|
||||
<!--end::Scroll-->
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Dropdown-->
|
||||
</div>
|
||||
<!--end::Search-->
|
||||
|
||||
<!--begin::User-->
|
||||
<div class="topbar-item">
|
||||
<div class="btn btn-icon w-auto btn-clean d-flex align-items-center btn-lg px-2" id="kt_quick_user_toggle">
|
||||
<span class="text-muted font-weight-bold font-size-base d-none d-md-inline mr-1">Hi,</span>
|
||||
<span class="text-dark-50 font-weight-bolder font-size-base d-none d-md-inline mr-3">{{ !empty(loggedInUser()->name) ? loggedInUser()->name : '' }}</span>
|
||||
<span class="symbol symbol-35 symbol-light-success">
|
||||
<span class="symbol-label font-size-h5 font-weight-bold">{{ !empty(loggedInUser()->name) ? ucfirst(mb_substr(loggedInUser()->name ?? 'Admin', 0, 1)) : '' }}</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::User-->
|
||||
</div>
|
||||
<!--end::Topbar-->
|
||||
</div>
|
||||
<!--end::Container-->
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
|
||||
<!--begin::Quick Panel-->
|
||||
<div id="kt_quick_panel" class="offcanvas offcanvas-right pt-5 pb-10">
|
||||
<!--begin::Header-->
|
||||
<div class="offcanvas-header offcanvas-header-navs d-flex align-items-center justify-content-between mb-5">
|
||||
<ul class="nav nav-bold nav-tabs nav-tabs-line nav-tabs-line-3x nav-tabs-primary flex-grow-1 px-10" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" data-toggle="tab" href="#kt_quick_panel_logs">Audit Logs</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-toggle="tab" href="#kt_quick_panel_notifications">Notifications</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-toggle="tab" href="#kt_quick_panel_settings">Settings</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="offcanvas-close mt-n1 pr-5">
|
||||
<a href="#" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_panel_close">
|
||||
<i class="ki ki-close icon-xs text-muted"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
<!--begin::Content-->
|
||||
<div class="offcanvas-content px-10">
|
||||
<div class="tab-content">
|
||||
<!--begin::Tabpane-->
|
||||
<div class="tab-pane fade show pt-3 pr-5 mr-n5 active" id="kt_quick_panel_logs" role="tabpanel">
|
||||
<!--begin::Section-->
|
||||
<div class="mb-15">
|
||||
<h5 class="font-weight-bold mb-5">System Messages</h5>
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center flex-wrap mb-5">
|
||||
<div class="symbol symbol-50 symbol-light mr-5">
|
||||
<span class="symbol-label">
|
||||
<img src="{{ asset('public/images/svg/misc/006-plurk.svg') }}" class="h-50 align-self-center" alt="" />
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-bolder text-dark-75 text-hover-primary font-size-lg mb-1">Top Authors</a>
|
||||
<span class="text-muted font-weight-bold">Most Successful Fellas</span>
|
||||
</div>
|
||||
<span class="btn btn-sm btn-light font-weight-bolder py-1 my-lg-0 my-2 text-dark-50">+82$</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center flex-wrap mb-5">
|
||||
<div class="symbol symbol-50 symbol-light mr-5">
|
||||
<span class="symbol-label">
|
||||
<img src="{{ asset('public/images/svg/misc/015-telegram.svg') }}" class="h-50 align-self-center" alt="" />
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-bolder text-dark-75 text-hover-primary font-size-lg mb-1">Popular Authors</a>
|
||||
<span class="text-muted font-weight-bold">Most Successful Fellas</span>
|
||||
</div>
|
||||
<span class="btn btn-sm btn-light font-weight-bolder my-lg-0 my-2 py-1 text-dark-50">+280$</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center flex-wrap mb-5">
|
||||
<div class="symbol symbol-50 symbol-light mr-5">
|
||||
<span class="symbol-label">
|
||||
<img src="{{ asset('public/images/svg/misc/003-puzzle.svg') }}" class="h-50 align-self-center" alt="" />
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-bolder text-dark-75 text-hover-primary font-size-lg mb-1">New Users</a>
|
||||
<span class="text-muted font-weight-bold">Most Successful Fellas</span>
|
||||
</div>
|
||||
<span class="btn btn-sm btn-light font-weight-bolder my-lg-0 my-2 py-1 text-dark-50">+4500$</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center flex-wrap mb-5">
|
||||
<div class="symbol symbol-50 symbol-light mr-5">
|
||||
<span class="symbol-label">
|
||||
<img src="{{ asset('public/images/svg/misc/005-bebo.svg') }}" class="h-50 align-self-center" alt="" />
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-bolder text-dark-75 text-hover-primary font-size-lg mb-1">Active Customers</a>
|
||||
<span class="text-muted font-weight-bold">Most Successful Fellas</span>
|
||||
</div>
|
||||
<span class="btn btn-sm btn-light font-weight-bolder my-lg-0 my-2 py-1 text-dark-50">+4500$</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center flex-wrap">
|
||||
<div class="symbol symbol-50 symbol-light mr-5">
|
||||
<span class="symbol-label">
|
||||
<img src="{{ asset('public/images/svg/misc/014-kickstarter.svg') }}" class="h-50 align-self-center" alt="" />
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-bolder text-dark-75 text-hover-primary font-size-lg mb-1">Bestseller Theme</a>
|
||||
<span class="text-muted font-weight-bold">Most Successful Fellas</span>
|
||||
</div>
|
||||
<span class="btn btn-sm btn-light font-weight-bolder my-lg-0 my-2 py-1 text-dark-50">+4500$</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
</div>
|
||||
<!--end::Section-->
|
||||
<!--begin::Section-->
|
||||
<div class="mb-5">
|
||||
<h5 class="font-weight-bold mb-5">Notifications</h5>
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center bg-light-warning rounded p-5 mb-5">
|
||||
<span class="svg-icon svg-icon-warning mr-5">
|
||||
<span class="svg-icon svg-icon-lg">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Home/Library.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24" />
|
||||
<path d="M5,3 L6,3 C6.55228475,3 7,3.44771525 7,4 L7,20 C7,20.5522847 6.55228475,21 6,21 L5,21 C4.44771525,21 4,20.5522847 4,20 L4,4 C4,3.44771525 4.44771525,3 5,3 Z M10,3 L11,3 C11.5522847,3 12,3.44771525 12,4 L12,20 C12,20.5522847 11.5522847,21 11,21 L10,21 C9.44771525,21 9,20.5522847 9,20 L9,4 C9,3.44771525 9.44771525,3 10,3 Z" fill="#000000" />
|
||||
<rect fill="#000000" opacity="0.3" transform="translate(17.825568, 11.945519) rotate(-19.000000) translate(-17.825568, -11.945519)" x="16.3255682" y="2.94551858" width="3" height="18" rx="1" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</span>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-normal text-dark-75 text-hover-primary font-size-lg mb-1">Another purpose persuade</a>
|
||||
<span class="text-muted font-size-sm">Due in 2 Days</span>
|
||||
</div>
|
||||
<span class="font-weight-bolder text-warning py-1 font-size-lg">+28%</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center bg-light-success rounded p-5 mb-5">
|
||||
<span class="svg-icon svg-icon-success mr-5">
|
||||
<span class="svg-icon svg-icon-lg">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Communication/Write.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24" />
|
||||
<path d="M12.2674799,18.2323597 L12.0084872,5.45852451 C12.0004303,5.06114792 12.1504154,4.6768183 12.4255037,4.38993949 L15.0030167,1.70195304 L17.5910752,4.40093695 C17.8599071,4.6812911 18.0095067,5.05499603 18.0083938,5.44341307 L17.9718262,18.2062508 C17.9694575,19.0329966 17.2985816,19.701953 16.4718324,19.701953 L13.7671717,19.701953 C12.9505952,19.701953 12.2840328,19.0487684 12.2674799,18.2323597 Z" fill="#000000" fill-rule="nonzero" transform="translate(14.701953, 10.701953) rotate(-135.000000) translate(-14.701953, -10.701953)" />
|
||||
<path d="M12.9,2 C13.4522847,2 13.9,2.44771525 13.9,3 C13.9,3.55228475 13.4522847,4 12.9,4 L6,4 C4.8954305,4 4,4.8954305 4,6 L4,18 C4,19.1045695 4.8954305,20 6,20 L18,20 C19.1045695,20 20,19.1045695 20,18 L20,13 C20,12.4477153 20.4477153,12 21,12 C21.5522847,12 22,12.4477153 22,13 L22,18 C22,20.209139 20.209139,22 18,22 L6,22 C3.790861,22 2,20.209139 2,18 L2,6 C2,3.790861 3.790861,2 6,2 L12.9,2 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</span>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-normal text-dark-75 text-hover-primary font-size-lg mb-1">Would be to people</a>
|
||||
<span class="text-muted font-size-sm">Due in 2 Days</span>
|
||||
</div>
|
||||
<span class="font-weight-bolder text-success py-1 font-size-lg">+50%</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center bg-light-danger rounded p-5 mb-5">
|
||||
<span class="svg-icon svg-icon-danger mr-5">
|
||||
<span class="svg-icon svg-icon-lg">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Communication/Group-chat.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24" />
|
||||
<path d="M16,15.6315789 L16,12 C16,10.3431458 14.6568542,9 13,9 L6.16183229,9 L6.16183229,5.52631579 C6.16183229,4.13107011 7.29290239,3 8.68814808,3 L20.4776218,3 C21.8728674,3 23.0039375,4.13107011 23.0039375,5.52631579 L23.0039375,13.1052632 L23.0206157,17.786793 C23.0215995,18.0629336 22.7985408,18.2875874 22.5224001,18.2885711 C22.3891754,18.2890457 22.2612702,18.2363324 22.1670655,18.1421277 L19.6565168,15.6315789 L16,15.6315789 Z" fill="#000000" />
|
||||
<path d="M1.98505595,18 L1.98505595,13 C1.98505595,11.8954305 2.88048645,11 3.98505595,11 L11.9850559,11 C13.0896254,11 13.9850559,11.8954305 13.9850559,13 L13.9850559,18 C13.9850559,19.1045695 13.0896254,20 11.9850559,20 L4.10078614,20 L2.85693427,21.1905292 C2.65744295,21.3814685 2.34093638,21.3745358 2.14999706,21.1750444 C2.06092565,21.0819836 2.01120804,20.958136 2.01120804,20.8293182 L2.01120804,18.32426 C1.99400175,18.2187196 1.98505595,18.1104045 1.98505595,18 Z M6.5,14 C6.22385763,14 6,14.2238576 6,14.5 C6,14.7761424 6.22385763,15 6.5,15 L11.5,15 C11.7761424,15 12,14.7761424 12,14.5 C12,14.2238576 11.7761424,14 11.5,14 L6.5,14 Z M9.5,16 C9.22385763,16 9,16.2238576 9,16.5 C9,16.7761424 9.22385763,17 9.5,17 L11.5,17 C11.7761424,17 12,16.7761424 12,16.5 C12,16.2238576 11.7761424,16 11.5,16 L9.5,16 Z" fill="#000000" opacity="0.3" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</span>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-normel text-dark-75 text-hover-primary font-size-lg mb-1">Purpose would be to persuade</a>
|
||||
<span class="text-muted font-size-sm">Due in 2 Days</span>
|
||||
</div>
|
||||
<span class="font-weight-bolder text-danger py-1 font-size-lg">-27%</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
<!--begin: Item-->
|
||||
<div class="d-flex align-items-center bg-light-info rounded p-5">
|
||||
<span class="svg-icon svg-icon-info mr-5">
|
||||
<span class="svg-icon svg-icon-lg">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/General/Attachment2.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24" />
|
||||
<path d="M11.7573593,15.2426407 L8.75735931,15.2426407 C8.20507456,15.2426407 7.75735931,15.6903559 7.75735931,16.2426407 C7.75735931,16.7949254 8.20507456,17.2426407 8.75735931,17.2426407 L11.7573593,17.2426407 L11.7573593,18.2426407 C11.7573593,19.3472102 10.8619288,20.2426407 9.75735931,20.2426407 L5.75735931,20.2426407 C4.65278981,20.2426407 3.75735931,19.3472102 3.75735931,18.2426407 L3.75735931,14.2426407 C3.75735931,13.1380712 4.65278981,12.2426407 5.75735931,12.2426407 L9.75735931,12.2426407 C10.8619288,12.2426407 11.7573593,13.1380712 11.7573593,14.2426407 L11.7573593,15.2426407 Z" fill="#000000" opacity="0.3" transform="translate(7.757359, 16.242641) rotate(-45.000000) translate(-7.757359, -16.242641)" />
|
||||
<path d="M12.2426407,8.75735931 L15.2426407,8.75735931 C15.7949254,8.75735931 16.2426407,8.30964406 16.2426407,7.75735931 C16.2426407,7.20507456 15.7949254,6.75735931 15.2426407,6.75735931 L12.2426407,6.75735931 L12.2426407,5.75735931 C12.2426407,4.65278981 13.1380712,3.75735931 14.2426407,3.75735931 L18.2426407,3.75735931 C19.3472102,3.75735931 20.2426407,4.65278981 20.2426407,5.75735931 L20.2426407,9.75735931 C20.2426407,10.8619288 19.3472102,11.7573593 18.2426407,11.7573593 L14.2426407,11.7573593 C13.1380712,11.7573593 12.2426407,10.8619288 12.2426407,9.75735931 L12.2426407,8.75735931 Z" fill="#000000" transform="translate(16.242641, 7.757359) rotate(-45.000000) translate(-16.242641, -7.757359)" />
|
||||
<path d="M5.89339828,3.42893219 C6.44568303,3.42893219 6.89339828,3.87664744 6.89339828,4.42893219 L6.89339828,6.42893219 C6.89339828,6.98121694 6.44568303,7.42893219 5.89339828,7.42893219 C5.34111353,7.42893219 4.89339828,6.98121694 4.89339828,6.42893219 L4.89339828,4.42893219 C4.89339828,3.87664744 5.34111353,3.42893219 5.89339828,3.42893219 Z M11.4289322,5.13603897 C11.8194565,5.52656326 11.8194565,6.15972824 11.4289322,6.55025253 L10.0147186,7.96446609 C9.62419433,8.35499039 8.99102936,8.35499039 8.60050506,7.96446609 C8.20998077,7.5739418 8.20998077,6.94077682 8.60050506,6.55025253 L10.0147186,5.13603897 C10.4052429,4.74551468 11.0384079,4.74551468 11.4289322,5.13603897 Z M0.600505063,5.13603897 C0.991029355,4.74551468 1.62419433,4.74551468 2.01471863,5.13603897 L3.42893219,6.55025253 C3.81945648,6.94077682 3.81945648,7.5739418 3.42893219,7.96446609 C3.0384079,8.35499039 2.40524292,8.35499039 2.01471863,7.96446609 L0.600505063,6.55025253 C0.209980772,6.15972824 0.209980772,5.52656326 0.600505063,5.13603897 Z" fill="#000000" opacity="0.3" transform="translate(6.014719, 5.843146) rotate(-45.000000) translate(-6.014719, -5.843146)" />
|
||||
<path d="M17.9142136,15.4497475 C18.4664983,15.4497475 18.9142136,15.8974627 18.9142136,16.4497475 L18.9142136,18.4497475 C18.9142136,19.0020322 18.4664983,19.4497475 17.9142136,19.4497475 C17.3619288,19.4497475 16.9142136,19.0020322 16.9142136,18.4497475 L16.9142136,16.4497475 C16.9142136,15.8974627 17.3619288,15.4497475 17.9142136,15.4497475 Z M23.4497475,17.1568542 C23.8402718,17.5473785 23.8402718,18.1805435 23.4497475,18.5710678 L22.0355339,19.9852814 C21.6450096,20.3758057 21.0118446,20.3758057 20.6213203,19.9852814 C20.2307961,19.5947571 20.2307961,18.9615921 20.6213203,18.5710678 L22.0355339,17.1568542 C22.4260582,16.76633 23.0592232,16.76633 23.4497475,17.1568542 Z M12.6213203,17.1568542 C13.0118446,16.76633 13.6450096,16.76633 14.0355339,17.1568542 L15.4497475,18.5710678 C15.8402718,18.9615921 15.8402718,19.5947571 15.4497475,19.9852814 C15.0592232,20.3758057 14.4260582,20.3758057 14.0355339,19.9852814 L12.6213203,18.5710678 C12.2307961,18.1805435 12.2307961,17.5473785 12.6213203,17.1568542 Z" fill="#000000" opacity="0.3" transform="translate(18.035534, 17.863961) scale(1, -1) rotate(45.000000) translate(-18.035534, -17.863961)" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</span>
|
||||
<div class="d-flex flex-column flex-grow-1 mr-2">
|
||||
<a href="#" class="font-weight-normel text-dark-75 text-hover-primary font-size-lg mb-1">The best product</a>
|
||||
<span class="text-muted font-size-sm">Due in 2 Days</span>
|
||||
</div>
|
||||
<span class="font-weight-bolder text-info py-1 font-size-lg">+8%</span>
|
||||
</div>
|
||||
<!--end: Item-->
|
||||
</div>
|
||||
<!--end::Section-->
|
||||
</div>
|
||||
<!--end::Tabpane-->
|
||||
<!--begin::Tabpane-->
|
||||
<div class="tab-pane fade pt-2 pr-5 mr-n5" id="kt_quick_panel_notifications" role="tabpanel">
|
||||
<!--begin::Nav-->
|
||||
<div class="navi navi-icon-circle navi-spacer-x-0">
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-bell text-success icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">5 new user generated report</div>
|
||||
<div class="text-muted">Reports based on sales</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon2-box text-danger icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">2 new items submited</div>
|
||||
<div class="text-muted">by Grog John</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-psd text-primary icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">79 PSD files generated</div>
|
||||
<div class="text-muted">Reports based on sales</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon2-supermarket text-warning icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">$2900 worth producucts sold</div>
|
||||
<div class="text-muted">Total 234 items</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-paper-plane-1 text-success icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">4.5h-avarage response time</div>
|
||||
<div class="text-muted">Fostest is Barry</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-safe-shield-protection text-danger icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">3 Defence alerts</div>
|
||||
<div class="text-muted">40% less alerts thar last week</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-notepad text-primary icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">Avarage 4 blog posts per author</div>
|
||||
<div class="text-muted">Most posted 12 time</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-users-1 text-warning icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">16 authors joined last week</div>
|
||||
<div class="text-muted">9 photodrapehrs, 7 designer</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon2-box text-info icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">2 new items have been submited</div>
|
||||
<div class="text-muted">by Grog John</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon2-download text-success icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">2.8 GB-total downloads size</div>
|
||||
<div class="text-muted">Mostly PSD end AL concepts</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon2-supermarket text-danger icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">$2900 worth producucts sold</div>
|
||||
<div class="text-muted">Total 234 items</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-bell text-primary icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">7 new user generated report</div>
|
||||
<div class="text-muted">Reports based on sales</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<a href="#" class="navi-item">
|
||||
<div class="navi-link rounded">
|
||||
<div class="symbol symbol-50 mr-3">
|
||||
<div class="symbol-label">
|
||||
<i class="flaticon-paper-plane-1 text-success icon-lg"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold font-size-lg">4.5h-avarage response time</div>
|
||||
<div class="text-muted">Fostest is Barry</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<!--end::Item-->
|
||||
</div>
|
||||
<!--end::Nav-->
|
||||
</div>
|
||||
<!--end::Tabpane-->
|
||||
<!--begin::Tabpane-->
|
||||
<div class="tab-pane fade pt-3 pr-5 mr-n5" id="kt_quick_panel_settings" role="tabpanel">
|
||||
<form class="form">
|
||||
<!--begin::Section-->
|
||||
<div>
|
||||
<h5 class="font-weight-bold mb-3">Customer Care</h5>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Enable Notifications:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-success switch-sm">
|
||||
<label>
|
||||
<input type="checkbox" checked="checked" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Enable Case Tracking:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-success switch-sm">
|
||||
<label>
|
||||
<input type="checkbox" name="quick_panel_notifications_2" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Support Portal:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-success switch-sm">
|
||||
<label>
|
||||
<input type="checkbox" checked="checked" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Section-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--begin::Section-->
|
||||
<div class="pt-2">
|
||||
<h5 class="font-weight-bold mb-3">Reports</h5>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Generate Reports:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-sm switch-danger">
|
||||
<label>
|
||||
<input type="checkbox" checked="checked" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Enable Report Export:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-sm switch-danger">
|
||||
<label>
|
||||
<input type="checkbox" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Allow Data Collection:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-sm switch-danger">
|
||||
<label>
|
||||
<input type="checkbox" checked="checked" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Section-->
|
||||
<div class="separator separator-dashed my-6"></div>
|
||||
<!--begin::Section-->
|
||||
<div class="pt-2">
|
||||
<h5 class="font-weight-bold mb-3">Memebers</h5>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Enable Member singup:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-sm switch-primary">
|
||||
<label>
|
||||
<input type="checkbox" checked="checked" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Allow User Feedbacks:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-sm switch-primary">
|
||||
<label>
|
||||
<input type="checkbox" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group mb-0 row">
|
||||
<label class="col-8 col-form-label">Enable Customer Portal:</label>
|
||||
<div class="col-4 text-right">
|
||||
<span class="switch switch-sm switch-primary">
|
||||
<label>
|
||||
<input type="checkbox" checked="checked" name="select" />
|
||||
<span></span>
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Section-->
|
||||
</form>
|
||||
</div>
|
||||
<!--end::Tabpane-->
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!--end::Quick Panel-->
|
||||
|
||||
<!-- begin::User Panel-->
|
||||
<div id="kt_quick_user" class="offcanvas offcanvas-right p-10">
|
||||
<!--begin::Header-->
|
||||
<div class="offcanvas-header d-flex align-items-center justify-content-between pb-5">
|
||||
<h3 class="font-weight-bold m-0">User Profile</h3>
|
||||
<a href="#" class="btn btn-xs btn-icon btn-light btn-hover-primary" id="kt_quick_user_close">
|
||||
<i class="ki ki-close icon-xs text-muted"></i>
|
||||
</a>
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
<!--begin::Content-->
|
||||
<div class="offcanvas-content pr-5 mr-n5">
|
||||
<!--begin::Header-->
|
||||
<div class="d-flex align-items-center mt-5">
|
||||
<div class="symbol symbol-100 mr-5">
|
||||
<div class="symbol-label" style="background-image:url('{{ asset('public/images/users/default.jpg') }}')"></div>
|
||||
<i class="symbol-badge bg-success"></i>
|
||||
</div>
|
||||
<div class="d-flex flex-column">
|
||||
<a href="#" class="font-weight-bold font-size-h5 text-dark-75 text-hover-primary">{{ !empty(loggedInUser()->name) ? loggedInUser()->name : '' }}</a>
|
||||
<div class="text-muted mt-1">Admin</div>
|
||||
<div class="navi mt-2">
|
||||
<a href="#" class="navi-item">
|
||||
<span class="navi-link p-0 pb-2">
|
||||
<span class="navi-icon mr-1">
|
||||
<span class="svg-icon svg-icon-lg svg-icon-primary">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Communication/Mail-notification.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24" />
|
||||
<path d="M21,12.0829584 C20.6747915,12.0283988 20.3407122,12 20,12 C16.6862915,12 14,14.6862915 14,18 C14,18.3407122 14.0283988,18.6747915 14.0829584,19 L5,19 C3.8954305,19 3,18.1045695 3,17 L3,8 C3,6.8954305 3.8954305,6 5,6 L19,6 C20.1045695,6 21,6.8954305 21,8 L21,12.0829584 Z M18.1444251,7.83964668 L12,11.1481833 L5.85557487,7.83964668 C5.4908718,7.6432681 5.03602525,7.77972206 4.83964668,8.14442513 C4.6432681,8.5091282 4.77972206,8.96397475 5.14442513,9.16035332 L11.6444251,12.6603533 C11.8664074,12.7798822 12.1335926,12.7798822 12.3555749,12.6603533 L18.8555749,9.16035332 C19.2202779,8.96397475 19.3567319,8.5091282 19.1603533,8.14442513 C18.9639747,7.77972206 18.5091282,7.6432681 18.1444251,7.83964668 Z" fill="#000000" />
|
||||
<circle fill="#000000" opacity="0.3" cx="19.5" cy="17.5" r="2.5" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</span>
|
||||
<span class="navi-text text-muted text-hover-primary">{{ !empty(loggedInUser()->email) ? loggedInUser()->email : '' }}</span>
|
||||
</span>
|
||||
</a>
|
||||
<a onclick="event.preventDefault();
|
||||
document.getElementById('logout-form').submit();" class="btn btn-sm btn-light-primary font-weight-bolder py-2 px-5">Sign Out</a>
|
||||
<form id="logout-form" action="{{ route('admin.logout') }}" method="POST" style="display: none;">
|
||||
@csrf
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
<!--begin::Separator-->
|
||||
<div class="separator separator-dashed mt-8 mb-5"></div>
|
||||
<!--end::Separator-->
|
||||
<div class="navi navi-spacer-x-0 p-0">
|
||||
<a href="{{route('admin.account-setting.index',['change-password'])}}" class="navi-item">
|
||||
<div class="navi-link">
|
||||
<div class="symbol symbol-40 bg-light mr-3">
|
||||
<div class="symbol-label">
|
||||
<span class="svg-icon svg-icon-dark-75 svg-icon-2x">
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px"
|
||||
viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<rect x="0" y="0" width="24" height="24"/>
|
||||
<path
|
||||
d="M18.6225,9.75 L18.75,9.75 C19.9926407,9.75 21,10.7573593 21,12 C21,13.2426407 19.9926407,14.25 18.75,14.25 L18.6854912,14.249994 C18.4911876,14.250769 18.3158978,14.366855 18.2393549,14.5454486 C18.1556809,14.7351461 18.1942911,14.948087 18.3278301,15.0846699 L18.372535,15.129375 C18.7950334,15.5514036 19.03243,16.1240792 19.03243,16.72125 C19.03243,17.3184208 18.7950334,17.8910964 18.373125,18.312535 C17.9510964,18.7350334 17.3784208,18.97243 16.78125,18.97243 C16.1840792,18.97243 15.6114036,18.7350334 15.1896699,18.3128301 L15.1505513,18.2736469 C15.008087,18.1342911 14.7951461,18.0956809 14.6054486,18.1793549 C14.426855,18.2558978 14.310769,18.4311876 14.31,18.6225 L14.31,18.75 C14.31,19.9926407 13.3026407,21 12.06,21 C10.8173593,21 9.81,19.9926407 9.81,18.75 C9.80552409,18.4999185 9.67898539,18.3229986 9.44717599,18.2361469 C9.26485393,18.1556809 9.05191298,18.1942911 8.91533009,18.3278301 L8.870625,18.372535 C8.44859642,18.7950334 7.87592081,19.03243 7.27875,19.03243 C6.68157919,19.03243 6.10890358,18.7950334 5.68746499,18.373125 C5.26496665,17.9510964 5.02757002,17.3784208 5.02757002,16.78125 C5.02757002,16.1840792 5.26496665,15.6114036 5.68716991,15.1896699 L5.72635306,15.1505513 C5.86570889,15.008087 5.90431906,14.7951461 5.82064513,14.6054486 C5.74410223,14.426855 5.56881236,14.310769 5.3775,14.31 L5.25,14.31 C4.00735931,14.31 3,13.3026407 3,12.06 C3,10.8173593 4.00735931,9.81 5.25,9.81 C5.50008154,9.80552409 5.67700139,9.67898539 5.76385306,9.44717599 C5.84431906,9.26485393 5.80570889,9.05191298 5.67216991,8.91533009 L5.62746499,8.870625 C5.20496665,8.44859642 4.96757002,7.87592081 4.96757002,7.27875 C4.96757002,6.68157919 5.20496665,6.10890358 5.626875,5.68746499 C6.04890358,5.26496665 6.62157919,5.02757002 7.21875,5.02757002 C7.81592081,5.02757002 8.38859642,5.26496665 8.81033009,5.68716991 L8.84944872,5.72635306 C8.99191298,5.86570889 9.20485393,5.90431906 9.38717599,5.82385306 L9.49484664,5.80114977 C9.65041313,5.71688974 9.7492905,5.55401473 9.75,5.3775 L9.75,5.25 C9.75,4.00735931 10.7573593,3 12,3 C13.2426407,3 14.25,4.00735931 14.25,5.25 L14.249994,5.31450877 C14.250769,5.50881236 14.366855,5.68410223 14.552824,5.76385306 C14.7351461,5.84431906 14.948087,5.80570889 15.0846699,5.67216991 L15.129375,5.62746499 C15.5514036,5.20496665 16.1240792,4.96757002 16.72125,4.96757002 C17.3184208,4.96757002 17.8910964,5.20496665 18.312535,5.626875 C18.7350334,6.04890358 18.97243,6.62157919 18.97243,7.21875 C18.97243,7.81592081 18.7350334,8.38859642 18.3128301,8.81033009 L18.2736469,8.84944872 C18.1342911,8.99191298 18.0956809,9.20485393 18.1761469,9.38717599 L18.1988502,9.49484664 C18.2831103,9.65041313 18.4459853,9.7492905 18.6225,9.75 Z"
|
||||
fill="#000000" fill-rule="nonzero" opacity="0.3"/>
|
||||
<path
|
||||
d="M12,15 C13.6568542,15 15,13.6568542 15,12 C15,10.3431458 13.6568542,9 12,9 C10.3431458,9 9,10.3431458 9,12 C9,13.6568542 10.3431458,15 12,15 Z"
|
||||
fill="#000000"/>
|
||||
</g>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navi-text">
|
||||
<div class="font-weight-bold">{{trans('menu.backend.side_menu.account_setting')}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
<!-- end::User Panel-->
|
||||
|
||||
<!--begin::Scrolltop-->
|
||||
<div id="kt_scrolltop" class="scrolltop">
|
||||
<span class="svg-icon">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Navigation/Up-2.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<polygon points="0 0 24 0 24 24 0 24" />
|
||||
<rect fill="#000000" opacity="0.3" x="11" y="10" width="2" height="10" rx="1" />
|
||||
<path d="M6.70710678,12.7071068 C6.31658249,13.0976311 5.68341751,13.0976311 5.29289322,12.7071068 C4.90236893,12.3165825 4.90236893,11.6834175 5.29289322,11.2928932 L11.2928932,5.29289322 C11.6714722,4.91431428 12.2810586,4.90106866 12.6757246,5.26284586 L18.6757246,10.7628459 C19.0828436,11.1360383 19.1103465,11.7686056 18.7371541,12.1757246 C18.3639617,12.5828436 17.7313944,12.6103465 17.3242754,12.2371541 L12.0300757,7.38413782 L6.70710678,12.7071068 Z" fill="#000000" fill-rule="nonzero" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</div>
|
||||
<!--end::Scrolltop-->
|
||||
194
resources/views/backend/includes/modal-sample.blade.php
Normal file
194
resources/views/backend/includes/modal-sample.blade.php
Normal file
@@ -0,0 +1,194 @@
|
||||
<button data-toggle="modal" data-target="#exampleModal">Open Modal</button>
|
||||
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content card card-custom">
|
||||
<div class="card-header justify-content-center">
|
||||
<div class="card-title mb-0">
|
||||
<h3 class="card-label mb-0">Modal title
|
||||
</h3>
|
||||
</div>
|
||||
<button type="button" class="close position-absolute" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<!-- Layout-1 -->
|
||||
<div class="row mb-10">
|
||||
<div class="col-6">
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Project Name :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
Test
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Project Hours :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
12
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Project Manager :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
Ruchit P.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Team Size :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
15
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Project Name :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
Test
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Project Hours :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
12
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Project Manager :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
Ruchit P.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row font-size-md mb-2">
|
||||
<div class="col-sm-5 text-muted text-right">Team Size :</div>
|
||||
<div class="col-sm-7">
|
||||
<div class="line-height-xl">
|
||||
15
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Layout-1 -->
|
||||
|
||||
<!--- Layout-2 -->
|
||||
<div class="imgwrap w-100 max-w-100 mb-4">
|
||||
<img src="{{asset('images/misc/bg-1.jpg')}}" alt="bg-1" class="w-100 max-w-100 rounded" />
|
||||
</div>
|
||||
<div class="line-height-xl mb-10">
|
||||
<p>Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...</p>
|
||||
</div>
|
||||
<!--- Layout-2 -->
|
||||
|
||||
<!-- Layout-3 -->
|
||||
<div class="row mb-10">
|
||||
<div class="col-sm-4">
|
||||
<img src="{{asset('images/misc/bg-2.jpg')}}" alt="bg-2" class="w-100 mx-100 rounded" />
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<div class="line-height-xl mb-4">
|
||||
<p>Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Layout-3 -->
|
||||
|
||||
<!-- Layout-4 -->
|
||||
<div class="row mb-10">
|
||||
<div class="col-sm-8">
|
||||
<div class="line-height-xl mb-4">
|
||||
<p>Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
Custom text for testing...Custom text for testing...
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<img src="{{asset('images/misc/bg-2.jpg')}}" alt="bg-2" class="w-100 mx-100 rounded" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- Layout-4 -->
|
||||
|
||||
<!-- Layout 5 -->
|
||||
<div class="row mb-10">
|
||||
<div class="col-12">
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<h3 class="text-dark mb-2 font-size-lg">1. Why FAQ Pages Are a Priority Are a Priority?
|
||||
</h3>
|
||||
<p class="text-muted mb-2">Because FAQ pages can bring in new visitors to your website via organic search and drive them to related pages – most typically deeper blog pages and service pages closely related to the questions being resolved.
|
||||
</p>
|
||||
<p class="text-muted mb-2">
|
||||
The FAQ page is one of the best ways to help people visiting your site.
|
||||
</p>
|
||||
<p class="text-muted mb-2">
|
||||
They will get their intended destination faster because you are removing any possible knowledge (informational and often trust) barriers.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<h3 class="text-dark mb-2 font-size-lg">2. Why FAQ Pages Are a Priority Are a PriorityAre a PriorityAre a PriorityAre a Priority?
|
||||
</h3>
|
||||
<p class="text-muted mb-2">Because FAQ pages can bring in new visitors to your website via organic search and drive them to related pages – most typically deeper blog pages and service pages closely related to the questions being resolved.
|
||||
</p>
|
||||
<p class="text-muted mb-2">
|
||||
The FAQ page is one of the best ways to help people visiting your site.
|
||||
</p>
|
||||
<p class="text-muted mb-2">
|
||||
They will get their intended destination faster because you are removing any possible knowledge (informational and often trust) barriers.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Layout 5 -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
206
resources/views/backend/includes/sidebar.blade.php
Normal file
206
resources/views/backend/includes/sidebar.blade.php
Normal file
@@ -0,0 +1,206 @@
|
||||
<!--begin::Aside-->
|
||||
<div class="aside aside-left aside-fixed d-flex flex-column flex-row-auto" id="kt_aside">
|
||||
<!--begin::Brand-->
|
||||
<div class="brand flex-column-auto" id="kt_brand">
|
||||
<!--begin::Logo-->
|
||||
<a href="{{ route('admin.dashboard') }}" class="brand-logo">
|
||||
<img alt="Logo" src="{{ asset('public/images/logos/Global-Jain-Logo.png') }}" width="150"/>
|
||||
</a>
|
||||
<!--end::Logo-->
|
||||
<!--begin::Toggle-->
|
||||
<button class="brand-toggle btn btn-sm px-0" id="kt_aside_toggle">
|
||||
<span class="svg-icon svg-icon svg-icon-xl">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Navigation/Angle-double-left.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px"
|
||||
height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<polygon points="0 0 24 0 24 24 0 24"/>
|
||||
<path
|
||||
d="M5.29288961,6.70710318 C4.90236532,6.31657888 4.90236532,5.68341391 5.29288961,5.29288961 C5.68341391,4.90236532 6.31657888,4.90236532 6.70710318,5.29288961 L12.7071032,11.2928896 C13.0856821,11.6714686 13.0989277,12.281055 12.7371505,12.675721 L7.23715054,18.675721 C6.86395813,19.08284 6.23139076,19.1103429 5.82427177,18.7371505 C5.41715278,18.3639581 5.38964985,17.7313908 5.76284226,17.3242718 L10.6158586,12.0300721 L5.29288961,6.70710318 Z"
|
||||
fill="#000000" fill-rule="nonzero"
|
||||
transform="translate(8.999997, 11.999999) scale(-1, 1) translate(-8.999997, -11.999999)"/>
|
||||
<path
|
||||
d="M10.7071009,15.7071068 C10.3165766,16.0976311 9.68341162,16.0976311 9.29288733,15.7071068 C8.90236304,15.3165825 8.90236304,14.6834175 9.29288733,14.2928932 L15.2928873,8.29289322 C15.6714663,7.91431428 16.2810527,7.90106866 16.6757187,8.26284586 L22.6757187,13.7628459 C23.0828377,14.1360383 23.1103407,14.7686056 22.7371482,15.1757246 C22.3639558,15.5828436 21.7313885,15.6103465 21.3242695,15.2371541 L16.0300699,10.3841378 L10.7071009,15.7071068 Z"
|
||||
fill="#000000" fill-rule="nonzero" opacity="0.3"
|
||||
transform="translate(15.999997, 11.999999) scale(-1, 1) rotate(-270.000000) translate(-15.999997, -11.999999)"/>
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</button>
|
||||
<!--end::Toolbar-->
|
||||
</div>
|
||||
<!--end::Brand-->
|
||||
<!--begin::Aside Menu-->
|
||||
<div class="aside-menu-wrapper flex-column-fluid" id="kt_aside_menu_wrapper">
|
||||
<!--begin::Menu Container-->
|
||||
<div id="kt_aside_menu" class="aside-menu my-4" data-menu-vertical="1" data-menu-scroll="1"
|
||||
data-menu-dropdown-timeout="500">
|
||||
<!--begin::Menu Nav-->
|
||||
<ul class="menu-nav">
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-item-submenu {{ request()->routeIs('admin.dashboard') ? 'menu-item-active' : '' }}"
|
||||
aria-haspopup="true">
|
||||
<a href="{{ route('admin.dashboard') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/Design/Layers.svg-->
|
||||
|
||||
<!-- <i class="fab fa-buffer"></i> -->
|
||||
<i class="fas fa-tachometer-alt menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.dashboard') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.dharma.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.dharma.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.dharma.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.jati.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.jati.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.jati.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.sampraday.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.sampraday.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.sampraday.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.sant.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.sant.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.sant.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.chaturmas-date.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.chaturmas-date.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.chaturmas_dates.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.hospitals.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.hospitals.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.hospital.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.certificates.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.certificates.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.certificate.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
@hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.sanghs.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.sanghs.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.sangh.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole
|
||||
{{-- @hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.roles.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.roles.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.role.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole --}}
|
||||
{{-- @hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.admin.user.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.admin.user.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.admin.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole --}}
|
||||
{{-- @hasanyrole(config('access.users.admin_role').'|'.config('access.users.super_admin_role'))
|
||||
<li class="menu-item menu-link {{ request()->routeIs('admin.user.*') ? 'menu-item-open' : '' }}"
|
||||
>
|
||||
<a href="{{ route('admin.user.index') }}" class="menu-link">
|
||||
<span class="svg-icon menu-icon">
|
||||
<!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Design/Bucket.svg-->
|
||||
<i class="fas fa-book-open menu-icon"></i>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
<span class="menu-text">{{ __('menu.backend.user.management') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endhasanyrole --}}
|
||||
</ul>
|
||||
<!--end::Menu Nav-->
|
||||
</div>
|
||||
<!--end::Menu Container-->
|
||||
</div>
|
||||
<!--end::Aside Menu-->
|
||||
</div>
|
||||
<!--end::Aside-->
|
||||
99
resources/views/backend/jati/create.blade.php
Normal file
99
resources/views/backend/jati/create.blade.php
Normal file
@@ -0,0 +1,99 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_jati_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.jati.index') }}" class="text-muted">{{ __('breadcrumb.jatis') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.add_jati') }}
|
||||
</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_jati_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.jati.store','id' => 'createJatiForm', 'files' => true]) }}
|
||||
@include('backend.jati.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createJatiForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('dropdown')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
103
resources/views/backend/jati/edit.blade.php
Normal file
103
resources/views/backend/jati/edit.blade.php
Normal file
@@ -0,0 +1,103 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_jati_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.jati.index') }}" class="text-muted">{{ __('breadcrumb.jatis') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.edit_jati') }}
|
||||
</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_jati_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($jati,['route' => ['admin.jati.update', $jati->id],'method' => 'PATCH','id' => 'updateJatiForm', 'files' => true]) }}
|
||||
@include('backend.jati.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
$("#updateJatiForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
},
|
||||
//dharma: {
|
||||
// required: true
|
||||
//}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('dropdown')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
});
|
||||
</script>
|
||||
<script src="{{ asset('/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
@endsection
|
||||
222
resources/views/backend/jati/list.blade.php
Normal file
222
resources/views/backend/jati/list.blade.php
Normal file
@@ -0,0 +1,222 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_jati_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.jatis') }}
|
||||
</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_jati_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.jati.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_jati') }}
|
||||
</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('name',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">
|
||||
{{ 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.jati_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.jati_listing_heading_3') }}</th>
|
||||
<th>{{ __('label.jati_listing_heading_4') }}</th>
|
||||
<th>{{ __('label.created_at') }}</th>
|
||||
<th>{{ __('label.jati_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.jati.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.jati.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.jati.grid.records.action') }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'dharma_id',
|
||||
name: 'dharma_id',
|
||||
},
|
||||
{
|
||||
data: 'status',
|
||||
name: 'status',
|
||||
},
|
||||
{
|
||||
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: 'name',
|
||||
type: 'text'
|
||||
},
|
||||
],
|
||||
defaultSortingIndex: 1,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
44
resources/views/backend/jati/partials/_form.blade.php
Normal file
44
resources/views/backend/jati/partials/_form.blade.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.jati_form_name') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.jati_name')]) }}
|
||||
@error('name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.jati_dharma_name') }} </label>
|
||||
{{ Form::select('dharma', $dharma, (isset($jati->dharma_id) && !empty($jati->dharma_id)) ? $jati->dharma_id : null,['class' => $errors->has('dharma') ? 'form-control selectpicker is-invalid dharma' : 'form-control selectpicker','title' => __('placeholder.jati_dharma_name'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('dharma')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-1 col-form-label">{{ __('label.status') }}</label>
|
||||
<div class="col-3">
|
||||
<span class="switch switch-outline switch-icon switch-primary">
|
||||
<label>
|
||||
{{ Form::checkbox('status',$jati->status ?? null,isset($jati->status) && $jati->status == 1 ? 'checked' : '') }}
|
||||
<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.jati.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.jati.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
193
resources/views/backend/layouts/app.blade.php
Normal file
193
resources/views/backend/layouts/app.blade.php
Normal file
@@ -0,0 +1,193 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>@yield('title')</title>
|
||||
<meta name="description" content="@yield('meta_description', app_name())">
|
||||
<meta name="author" content="@yield('meta_author', app_name())">
|
||||
@yield('meta')
|
||||
|
||||
@stack('before-styles')
|
||||
|
||||
<!-- Check if the language is set to RTL, so apply the RTL layouts -->
|
||||
<!-- Otherwise apply the normal LTR layouts -->
|
||||
<link rel="shortcut icon" href="{{asset('public//img/favicon.ico')}}" type="image/x-icon" />
|
||||
<link rel="apple-touch-icon" href="{{asset('public//img/favicon.ico')}}" />
|
||||
<link rel="apple-touch-icon-precomposed" href="{{asset('public//img/favicon.ico')}}" />
|
||||
<!--begin::Fonts-->
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
|
||||
<!--end::Fonts-->
|
||||
|
||||
<link href="{{ asset('public/plugins/custom/prismjs/prismjs.bundle.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('public/plugins/global/plugins.bundle.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('public/css/style.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('public/css/backend/custom.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
|
||||
|
||||
<!--begin::Global Theme Styles(used by all pages)-->
|
||||
<link href="{{ asset('public/css/themes/layout/header/base/light.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('public/css/themes/layout/header/menu/light.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('public/css/themes/layout/brand/dark.css') }}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{ asset('public/css/themes/layout/aside/dark.css') }}" rel="stylesheet" type="text/css" />
|
||||
<!--end::Global Theme Styles-->
|
||||
@stack('after-styles')
|
||||
</head>
|
||||
|
||||
<body id="kt_body" class="header-fixed header-mobile-fixed subheader-enabled subheader-fixed aside-enabled aside-fixed aside-minimize-hoverable page-loading">
|
||||
|
||||
<!--begin::Main-->
|
||||
<!--begin::Header Mobile-->
|
||||
<div id="kt_header_mobile" class="header-mobile align-items-center header-mobile-fixed">
|
||||
<!--begin::Logo-->
|
||||
<a href="{{ route('admin.dashboard') }}">
|
||||
<img alt="Logo" src="{{ asset('public/images/logos/logo.png') }}" />
|
||||
</a>
|
||||
<!--end::Logo-->
|
||||
<!--begin::Toolbar-->
|
||||
<div class="d-flex align-items-center">
|
||||
<!--begin::Aside Mobile Toggle-->
|
||||
<button class="btn p-0 burger-icon burger-icon-left" id="kt_aside_mobile_toggle">
|
||||
<span></span>
|
||||
</button>
|
||||
<!--end::Aside Mobile Toggle-->
|
||||
<!--begin::Header Menu Mobile Toggle-->
|
||||
<button class="btn p-0 burger-icon ml-4" id="kt_header_mobile_toggle">
|
||||
<span></span>
|
||||
</button>
|
||||
<!--end::Header Menu Mobile Toggle-->
|
||||
<!--begin::Topbar Mobile Toggle-->
|
||||
<button class="btn btn-hover-text-primary p-0 ml-2" id="kt_header_mobile_topbar_toggle">
|
||||
<span class="svg-icon svg-icon-xl">
|
||||
<!--begin::Svg Icon | path:assets/media/svg/icons/General/User.svg-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
||||
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<polygon points="0 0 24 0 24 24 0 24" />
|
||||
<path d="M12,11 C9.790861,11 8,9.209139 8,7 C8,4.790861 9.790861,3 12,3 C14.209139,3 16,4.790861 16,7 C16,9.209139 14.209139,11 12,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
|
||||
<path d="M3.00065168,20.1992055 C3.38825852,15.4265159 7.26191235,13 11.9833413,13 C16.7712164,13 20.7048837,15.2931929 20.9979143,20.2 C21.0095879,20.3954741 20.9979143,21 20.2466999,21 C16.541124,21 11.0347247,21 3.72750223,21 C3.47671215,21 2.97953825,20.45918 3.00065168,20.1992055 Z" fill="#000000" fill-rule="nonzero" />
|
||||
</g>
|
||||
</svg>
|
||||
<!--end::Svg Icon-->
|
||||
</span>
|
||||
</button>
|
||||
<!--end::Topbar Mobile Toggle-->
|
||||
</div>
|
||||
<!--end::Toolbar-->
|
||||
</div>
|
||||
<!--end::Header Mobile-->
|
||||
<div class="d-flex flex-column flex-root">
|
||||
<!--begin::Page-->
|
||||
<div class="d-flex flex-row flex-column-fluid page">
|
||||
@include('backend.includes.sidebar')
|
||||
<!--begin::Wrapper-->
|
||||
<div class="d-flex flex-column flex-row-fluid wrapper" id="kt_wrapper">
|
||||
@yield('breadcrumb')
|
||||
@include('backend.includes.header')
|
||||
<!--begin::Content-->
|
||||
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
|
||||
|
||||
@yield('content')
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
@include('backend.includes.footer')
|
||||
</div>
|
||||
<!--end::Wrapper-->
|
||||
</div>
|
||||
<!--end::Page-->
|
||||
</div>
|
||||
<!--end::Main-->
|
||||
<!-- Scripts -->
|
||||
@yield('before-scripts')
|
||||
<script>
|
||||
var HOST_URL = '{{ env("APP_URL")."admin" }}';
|
||||
</script>
|
||||
<!--begin::Global Config(global config for global JS scripts)-->
|
||||
<script>
|
||||
var KTAppSettings = {
|
||||
"breakpoints": {
|
||||
"sm": 576,
|
||||
"md": 768,
|
||||
"lg": 992,
|
||||
"xl": 1200,
|
||||
"xxl": 1200
|
||||
},
|
||||
"colors": {
|
||||
"theme": {
|
||||
"base": {
|
||||
"white": "#ffffff",
|
||||
"primary": "#3699FF",
|
||||
"secondary": "#E5EAEE",
|
||||
"success": "#1BC5BD",
|
||||
"info": "#8950FC",
|
||||
"warning": "#FFA800",
|
||||
"danger": "#F64E60",
|
||||
"light": "#F3F6F9",
|
||||
"dark": "#212121"
|
||||
},
|
||||
"light": {
|
||||
"white": "#ffffff",
|
||||
"primary": "#E1F0FF",
|
||||
"secondary": "#ECF0F3",
|
||||
"success": "#C9F7F5",
|
||||
"info": "#EEE5FF",
|
||||
"warning": "#FFF4DE",
|
||||
"danger": "#FFE2E5",
|
||||
"light": "#F3F6F9",
|
||||
"dark": "#D6D6E0"
|
||||
},
|
||||
"inverse": {
|
||||
"white": "#ffffff",
|
||||
"primary": "#ffffff",
|
||||
"secondary": "#212121",
|
||||
"success": "#ffffff",
|
||||
"info": "#ffffff",
|
||||
"warning": "#ffffff",
|
||||
"danger": "#ffffff",
|
||||
"light": "#464E5F",
|
||||
"dark": "#ffffff"
|
||||
}
|
||||
},
|
||||
"gray": {
|
||||
"gray-100": "#F3F6F9",
|
||||
"gray-200": "#ECF0F3",
|
||||
"gray-300": "#E5EAEE",
|
||||
"gray-400": "#D6D6E0",
|
||||
"gray-500": "#B5B5C3",
|
||||
"gray-600": "#80808F",
|
||||
"gray-700": "#464E5F",
|
||||
"gray-800": "#1B283F",
|
||||
"gray-900": "#212121"
|
||||
}
|
||||
},
|
||||
"font-family": "Poppins"
|
||||
};
|
||||
</script>
|
||||
<!--end::Global Config-->
|
||||
<script src="{{ asset('public/plugins/global/plugins.bundle.js') }}"></script>
|
||||
<script src="{{ asset('public/plugins/custom/prismjs/prismjs.bundle.js') }}"></script>
|
||||
<script src="{{ asset('public/js/scripts.bundle.js') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/widgets.js') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/crud/ktdatatable/base/data-local.js') }}"></script>
|
||||
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-datepicker.js?v=7.0.4') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-datetimepicker.js?v=7.2.8') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-timepicker.js?v=7.0.4') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-daterangepicker.js?v=7.0.4') }}"></script>
|
||||
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-select.js?v=7.0.4') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/select2.js?v=7.0.4') }}"></script>
|
||||
|
||||
{{-- <script src="{{ asset('public/js/pages/crud/forms/widgets/tagify.js?v=7.0.4') }}"></script> --}}
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-touchspin.js?v=7.0.4') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/ion-range-slider.js?v=7.0.4') }}"></script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/form-repeater.js?v=7.0.4') }}"></script>
|
||||
|
||||
<script src="{{ asset('public/js/custom.js') }}"></script>
|
||||
@yield('after-scripts')
|
||||
@include('includes.partials.flash-messages')
|
||||
@yield('popup')
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js"></script>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/additional-methods.min.js"></script>
|
||||
54
resources/views/backend/layouts/login.blade.php
Normal file
54
resources/views/backend/layouts/login.blade.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if IE 8]>
|
||||
<html lang="en" class="ie8 no-js"> <![endif]-->
|
||||
<!--[if IE 9]>
|
||||
<html lang="en" class="ie9 no-js"> <![endif]-->
|
||||
<!--[if !IE]><!-->
|
||||
<html lang="en">
|
||||
<!--<![endif]-->
|
||||
<!-- BEGIN HEAD -->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
|
||||
<title>@yield('title')</title>
|
||||
<link rel="shortcut icon" src=""/>
|
||||
<link rel="shortcut icon" href="" type="image/x-icon"/>
|
||||
<link rel="apple-touch-icon" href=""/>
|
||||
<link rel="apple-touch-icon-precomposed" href=""/>
|
||||
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@yield('meta')
|
||||
|
||||
@stack('before-styles')
|
||||
|
||||
<link href="{{ asset('public/css/pages/login/login-1.css') }}" rel="stylesheet" type="text/css"/>
|
||||
<link href="{{ asset('public/plugins/global/plugins.bundle.css') }}" rel="stylesheet" type="text/css"/>
|
||||
<link href="{{ asset('public/plugins/custom/prismjs/prismjs.bundle.css') }}" rel="stylesheet" type="text/css"/>
|
||||
<link href="{{ asset('public/css/style.css') }}" rel="stylesheet" type="text/css"/>
|
||||
<link href="{{ asset('public/css/themes/layout/header/base/light.css') }}" rel="stylesheet" type="text/css"/>
|
||||
<link href="{{ asset('public/css/themes/layout/header/menu/light.css') }}" rel="stylesheet" type="text/css"/>
|
||||
@stack('after-styles')
|
||||
</head>
|
||||
<!-- END HEAD -->
|
||||
<body id="kt_body"
|
||||
class="header-mobile-fixed subheader-enabled aside-enabled aside-fixed aside-secondary-enabled page-loading">
|
||||
<!--begin::Main-->
|
||||
<div class="d-flex flex-column flex-root">
|
||||
@yield('content')
|
||||
</div>
|
||||
<!-- Scripts -->
|
||||
|
||||
<script src="{{ asset('public/js/app.js') }}" data-turbolinks-track="reload"></script>
|
||||
|
||||
@yield('before-scripts')
|
||||
<script src="{{ asset('public/plugins/global/plugins.bundle.js') }}"></script>
|
||||
<script src="{{ asset('public/plugins/custom/prismjs/prismjs.bundle.js') }}"></script>
|
||||
<script src="{{ asset('public/js/scripts.bundle.js') }}"></script><!--
|
||||
<script src="{{ asset('js/pages/custom/login/login-general.js') }}"></script> -->
|
||||
|
||||
@yield('after-scripts')
|
||||
|
||||
@include('includes.partials.flash-messages')
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,247 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<!-- NAME: SELL PRODUCTS -->
|
||||
<!--[if gte mso 15]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">
|
||||
<title>Certificate Approved</title>
|
||||
|
||||
<style type="text/css">
|
||||
body * {
|
||||
font-family: 'Roboto';
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img,
|
||||
a img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body,
|
||||
#bodyTable,
|
||||
#bodyCell {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mcnPreviewText {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
table {
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
.ReadMsgBody {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
blockquote {
|
||||
mso-line-height-rule: exactly;
|
||||
}
|
||||
|
||||
a[href^=tel],
|
||||
a[href^=sms] {
|
||||
color: inherit;
|
||||
cursor: default;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
body,
|
||||
table,
|
||||
blockquote {
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass,
|
||||
.ExternalClass p,
|
||||
.ExternalClass td,
|
||||
.ExternalClass div,
|
||||
.ExternalClass span,
|
||||
.ExternalClass font {
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
a[x-apple-data-detectors] {
|
||||
color: inherit !important;
|
||||
text-decoration: none !important;
|
||||
font-size: inherit !important;
|
||||
font-family: inherit !important;
|
||||
font-weight: inherit !important;
|
||||
line-height: inherit !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0"
|
||||
style="max-width: 500px;width: 100%; margin: auto; background-color: #000;">
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 40px 10px;">
|
||||
<img style="width: 160px;display: block;margin: auto;"
|
||||
src="{{ asset('images/logos/Global-Jain-Logo.png') }}"
|
||||
alt="Logo"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 20px 30px;">
|
||||
<img style="width: 145px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/mail7.png') }}" alt="Mail icon"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td
|
||||
style="padding: 5px 30px;text-align: center;font-size: 20px; font-weight: 700;color: #e1ccbe;">
|
||||
Dear {{ $data?->hospital?->name }} - Admin,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0 30px;">
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
We are writing to inform you that Jain Sangh has approved a request under the "Jain Health Care" Discount Scheme for {{ $data?->full_name }}. The approval allows the patient to avail a discount at your hospital.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Please refer to the attached approval letter for your kind perusal.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
The patient will present the approval letter along with a copy of their Aadhar card at your
|
||||
administration office within the next 48 hours to utilize this benefit.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Please facilitate the necessary arrangements to ensure a smooth process for the patient.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
If you have any questions or need further assistance, please do not hesitate to contact us
|
||||
<a href="mailto:jainhealthcare@globaljain.net">JainHealthCare@globaljain.net</a>
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Best Regards,
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Shree Jain Sangh Admin
|
||||
</p>
|
||||
<p style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
<a href="{{env('APP_URL')}}">www.globaljain.net</a> | <a href="mailto:jainhealthcare@globalJain.net">JainHealthCare@GlobalJain.net</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 20px 30px;text-align: center;">
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none; display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/facebook.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Facebook</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/twitter.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Twitter</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/instagram.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Instagram</p>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 5px 30px 20px 30px;">
|
||||
<p
|
||||
style="margin: 0;text-align: center;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
© 2022, {{env('APP_NAME')}}. All Rights Reserved.
|
||||
{{-- If you do not wish to receive these emails, --}}
|
||||
{{-- <a href="javascript:void(0);"
|
||||
style="font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;text-decoration: underline;">unsubscribe
|
||||
here</a> --}}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,241 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<!-- NAME: SELL PRODUCTS -->
|
||||
<!--[if gte mso 15]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">
|
||||
<title>Certificate Approved</title>
|
||||
|
||||
<style type="text/css">
|
||||
body * {
|
||||
font-family: 'Roboto';
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img,
|
||||
a img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body,
|
||||
#bodyTable,
|
||||
#bodyCell {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mcnPreviewText {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
table {
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
.ReadMsgBody {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
blockquote {
|
||||
mso-line-height-rule: exactly;
|
||||
}
|
||||
|
||||
a[href^=tel],
|
||||
a[href^=sms] {
|
||||
color: inherit;
|
||||
cursor: default;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
body,
|
||||
table,
|
||||
blockquote {
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass,
|
||||
.ExternalClass p,
|
||||
.ExternalClass td,
|
||||
.ExternalClass div,
|
||||
.ExternalClass span,
|
||||
.ExternalClass font {
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
a[x-apple-data-detectors] {
|
||||
color: inherit !important;
|
||||
text-decoration: none !important;
|
||||
font-size: inherit !important;
|
||||
font-family: inherit !important;
|
||||
font-weight: inherit !important;
|
||||
line-height: inherit !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0"
|
||||
style="max-width: 500px;width: 100%; margin: auto; background-color: #000;">
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 40px 10px;">
|
||||
<img style="width: 160px;display: block;margin: auto;"
|
||||
src="{{ asset('images/logos/Global-Jain-Logo.png') }}"
|
||||
alt="Logo"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 20px 30px;">
|
||||
<img style="width: 145px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/mail7.png') }}" alt="Mail icon"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td
|
||||
style="padding: 5px 30px;text-align: center;font-size: 20px; font-weight: 700;color: #e1ccbe;">
|
||||
Dear {{ $data?->full_name }},
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0 30px;">
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
We are pleased to inform you that your request to avail the Jain Health Care discount facility at {{ $data?->hospital?->name }} has been approved.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Please note that the discount is valid only for the next 48 hours. To avail of the discount, you are
|
||||
required to submit this approval letter attached along with a copy of your Aadhar card to the
|
||||
hospital administration.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
If you have any questions or need further assistance, please do not hesitate to contact us
|
||||
<a href="mailto:jainhealthcare@globaljain.net">JainHealthCare@globaljain.net</a>
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Best Regards,
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Shree Jain Sangh Admin
|
||||
</p>
|
||||
<p style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
<a href="{{env('APP_URL')}}">www.globaljain.net</a> | <a href="mailto:jainhealthcare@globalJain.net">JainHealthCare@GlobalJain.net</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding: 20px 30px;text-align: center;">
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none; display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/facebook.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Facebook</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/twitter.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Twitter</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/instagram.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Instagram</p>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 5px 30px 20px 30px;">
|
||||
<p
|
||||
style="margin: 0;text-align: center;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
© 2022, {{env('APP_NAME')}}. All Rights Reserved.
|
||||
{{-- If you do not wish to receive these emails, --}}
|
||||
{{-- <a href="javascript:void(0);"
|
||||
style="font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;text-decoration: underline;">unsubscribe
|
||||
here</a> --}}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,240 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<!-- NAME: SELL PRODUCTS -->
|
||||
<!--[if gte mso 15]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">
|
||||
<title>Certificate Rejection</title>
|
||||
|
||||
<style type="text/css">
|
||||
body * {
|
||||
font-family: 'Roboto';
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img,
|
||||
a img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body,
|
||||
#bodyTable,
|
||||
#bodyCell {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mcnPreviewText {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
table {
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
.ReadMsgBody {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
blockquote {
|
||||
mso-line-height-rule: exactly;
|
||||
}
|
||||
|
||||
a[href^=tel],
|
||||
a[href^=sms] {
|
||||
color: inherit;
|
||||
cursor: default;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
body,
|
||||
table,
|
||||
blockquote {
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass,
|
||||
.ExternalClass p,
|
||||
.ExternalClass td,
|
||||
.ExternalClass div,
|
||||
.ExternalClass span,
|
||||
.ExternalClass font {
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
a[x-apple-data-detectors] {
|
||||
color: inherit !important;
|
||||
text-decoration: none !important;
|
||||
font-size: inherit !important;
|
||||
font-family: inherit !important;
|
||||
font-weight: inherit !important;
|
||||
line-height: inherit !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0"
|
||||
style="max-width: 500px;width: 100%; margin: auto; background-color: #000;">
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 40px 10px;">
|
||||
<img style="width: 160px;display: block;margin: auto;"
|
||||
src="{{ asset('images/logos/Global-Jain-Logo.png') }}"
|
||||
alt="Logo"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 20px 30px;">
|
||||
<img style="width: 145px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/mail7.png') }}" alt="Mail icon"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td
|
||||
style="padding: 5px 30px;text-align: center;font-size: 20px; font-weight: 700;color: #e1ccbe;">
|
||||
Dear {{ $data?->full_name }},
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0 30px;">
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
We regret to inform you that your request to avail the Jain Health Care discount facility at
|
||||
{{ $data?->hospital?->name }} has been rejected. The reason for this decision is {{ $data?->rejection_reason }}
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
You are welcome to submit a new request. Please ensure that all necessary documents and
|
||||
details are included to facilitate a smoother review process.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
If you have any questions or need further assistance, please do not hesitate to contact us
|
||||
<a href="mailto:jainhealthcare@globaljain.net">JainHealthCare@globaljain.net</a>
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Best Regards,
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Shree Jain Sangh Admin
|
||||
</p>
|
||||
<p style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
<a href="{{env('APP_URL')}}">www.globaljain.net</a> | <a href="mailto:jainhealthcare@globalJain.net">JainHealthCare@GlobalJain.net</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 20px 30px;text-align: center;">
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none; display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/facebook.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Facebook</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/twitter.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Twitter</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/instagram.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Instagram</p>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 5px 30px 20px 30px;">
|
||||
<p
|
||||
style="margin: 0;text-align: center;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
© 2022, {{env('APP_NAME')}}. All Rights Reserved.
|
||||
{{-- If you do not wish to receive these emails, --}}
|
||||
{{-- <a href="javascript:void(0);"
|
||||
style="font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;text-decoration: underline;">unsubscribe
|
||||
here</a> --}}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,243 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office">
|
||||
|
||||
<head>
|
||||
<!-- NAME: SELL PRODUCTS -->
|
||||
<!--[if gte mso 15]>
|
||||
<xml>
|
||||
<o:OfficeDocumentSettings>
|
||||
<o:AllowPNG/>
|
||||
<o:PixelsPerInch>96</o:PixelsPerInch>
|
||||
</o:OfficeDocumentSettings>
|
||||
</xml>
|
||||
<![endif]-->
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">
|
||||
<title>Certificate Request</title>
|
||||
|
||||
<style type="text/css">
|
||||
body * {
|
||||
font-family: 'Roboto';
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img,
|
||||
a img {
|
||||
border: 0;
|
||||
height: auto;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body,
|
||||
#bodyTable,
|
||||
#bodyCell {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mcnPreviewText {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#outlook a {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
-ms-interpolation-mode: bicubic;
|
||||
}
|
||||
|
||||
table {
|
||||
mso-table-lspace: 0pt;
|
||||
mso-table-rspace: 0pt;
|
||||
}
|
||||
|
||||
.ReadMsgBody {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
blockquote {
|
||||
mso-line-height-rule: exactly;
|
||||
}
|
||||
|
||||
a[href^=tel],
|
||||
a[href^=sms] {
|
||||
color: inherit;
|
||||
cursor: default;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p,
|
||||
a,
|
||||
li,
|
||||
td,
|
||||
body,
|
||||
table,
|
||||
blockquote {
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
.ExternalClass,
|
||||
.ExternalClass p,
|
||||
.ExternalClass td,
|
||||
.ExternalClass div,
|
||||
.ExternalClass span,
|
||||
.ExternalClass font {
|
||||
line-height: 100%;
|
||||
}
|
||||
|
||||
a[x-apple-data-detectors] {
|
||||
color: inherit !important;
|
||||
text-decoration: none !important;
|
||||
font-size: inherit !important;
|
||||
font-family: inherit !important;
|
||||
font-weight: inherit !important;
|
||||
line-height: inherit !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0"
|
||||
style="max-width: 500px;width: 100%; margin: auto; background-color: #000;">
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 40px 10px;">
|
||||
<img style="width: 160px;display: block;margin: auto;"
|
||||
src="{{ asset('images/logos/Global-Jain-Logo.png') }}"
|
||||
alt="Logo"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="text-align: center;padding: 20px 30px;">
|
||||
<img style="width: 145px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/mail7.png') }}" alt="Mail icon"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td
|
||||
style="padding: 5px 30px;text-align: center;font-size: 20px; font-weight: 700;color: #e1ccbe;">
|
||||
Dear Sangh admin,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0 30px;">
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
I am writing to inform you that {{ ucfirst($data->full_name ) }} has submitted a request to avail of the Jain
|
||||
Health Care discount facility at
|
||||
{{ ucfirst($data?->hospital?->name) }}.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Below are his contact details
|
||||
<ul style="color:#fff">
|
||||
<li>Patient’s cell no: {{ $data?->user?->mobile }}</li>
|
||||
<li>Patient’s email Id: {{ $data?->email }}</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Please review and process the request.
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
Best Regards,
|
||||
</p>
|
||||
<p
|
||||
style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
{{ ucfirst($data->full_name ) }}
|
||||
</p>
|
||||
<p style="margin: 0;padding: 10px 0;text-align: left;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
<a href="{{env('APP_URL')}}">www.globaljain.net</a> | <a href="mailto:jainhealthcare@globalJain.net">JainHealthCare@GlobalJain.net</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 30px">
|
||||
<span style="background-color: #303030;height: 1px;display: block;"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 20px 30px;text-align: center;">
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none; display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/facebook.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Facebook</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/twitter.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Twitter</p>
|
||||
</a>
|
||||
<a href="javascript:void(0);"
|
||||
style="text-decoration: none;display: inline-block;text-align: center;margin: 0 15px;">
|
||||
<img style="width: 38px;display: block;margin: auto;"
|
||||
src="{{ asset('images/mail/instagram.png') }}" alt="Mail icon"/>
|
||||
<p style="font-size: 11px;color: #565656;margin: 5px 0 0 0;">Instagram</p>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 5px 30px 20px 30px;">
|
||||
<p
|
||||
style="margin: 0;text-align: center;font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;">
|
||||
© 2022, {{env('APP_NAME')}}. All Rights Reserved.
|
||||
{{-- If you do not wish to receive these emails, --}}
|
||||
{{-- <a href="javascript:void(0);"
|
||||
style="font-size: 15px; line-height: 24px; font-weight: 400;color: #fff;text-decoration: underline;">unsubscribe
|
||||
here</a> --}}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
89
resources/views/backend/role/create.blade.php
Normal file
89
resources/views/backend/role/create.blade.php
Normal file
@@ -0,0 +1,89 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_role_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">
|
||||
<a href="{{ route('admin.roles.index') }}" class="text-muted">{{ __('breadcrumb.roles') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.roles.create') }}" class="text-muted">{{ __('breadcrumb.create_role') }}</a>
|
||||
</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_role_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.roles.store','id' => 'createDharmaForm', 'files' => true]) }}
|
||||
@include('backend.role.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createDharmaForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
90
resources/views/backend/role/edit.blade.php
Normal file
90
resources/views/backend/role/edit.blade.php
Normal file
@@ -0,0 +1,90 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_role_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">
|
||||
<a href="{{ route('admin.roles.index') }}" class="text-muted">{{ __('breadcrumb.roles') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="javascript:void(0);" class="text-muted">{{ __('breadcrumb.update_role') }}</a>
|
||||
</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_role_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($role,['route' => ['admin.roles.update', $role->id],'method' => 'PATCH','id' => 'updateroleForm', 'files' => true]) }}
|
||||
@include('backend.role.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
$("#updateroleForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
this.element(element);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
});
|
||||
</script>
|
||||
<script src="{{ asset('/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
@endsection
|
||||
179
resources/views/backend/role/list.blade.php
Normal file
179
resources/views/backend/role/list.blade.php
Normal file
@@ -0,0 +1,179 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_role_page_title').' | '.env('APP_NAME'))
|
||||
|
||||
@push('after-styles')
|
||||
<!-- DataTables -->
|
||||
<link href="{{ asset('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.roles.index') }}"
|
||||
class="text-muted">{{ __('breadcrumb.roles') }}</a>
|
||||
</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_role_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.roles.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_role') }}
|
||||
</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('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','placeholder' => __('label.search')]) }}
|
||||
</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>
|
||||
<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.role_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.role_listing_heading_3') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
<!-- DataTables -->
|
||||
<script src="{{ asset('js/datatable/jquery.dataTables.min.js') }}"></script>
|
||||
<script src="{{ asset('js/datatable/dataTables.bootstrap4.min.js') }}"></script>
|
||||
<script src="{{ asset('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.roles.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.roles.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.roles.grid.records.action') }}",
|
||||
columns: [
|
||||
// {
|
||||
// data: 'checkbox_action',
|
||||
// name: 'checkbox_action',
|
||||
// sortable: false
|
||||
// },
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 1,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
55
resources/views/backend/role/partials/_form.blade.php
Normal file
55
resources/views/backend/role/partials/_form.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.role_form_name') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.role_name')]) }}
|
||||
@error('name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="validationCustom01">Permissions</label>
|
||||
<table class="table table-bordered py-4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Module</th>
|
||||
<th scope="col">View</th>
|
||||
<th scope="col">Add</th>
|
||||
<th scope="col">Edit</th>
|
||||
<th scope="col">Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($permissions as $key => $permissiona)
|
||||
<pre>
|
||||
</pre>
|
||||
<tr>
|
||||
<th scope="row"> {{ $key }} </th>
|
||||
@foreach($permissiona as $permission)
|
||||
<td>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="permissions[]" id="{{ $permission->id }}" value="{{ $permission->id }}" @if(in_array($permission->id, $rolePermissions)) checked="checked" @endif />
|
||||
<label for="{{ $permission->id }}">{{ $permission->name }}</label>
|
||||
</div>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<button type="submit" name="save" value="save" class="btn btn-primary mr-2">
|
||||
@if(\Request::route()->getName() == 'admin.roles.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.roles.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
137
resources/views/backend/sampraday/create.blade.php
Normal file
137
resources/views/backend/sampraday/create.blade.php
Normal file
@@ -0,0 +1,137 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_sampraday_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.sampraday.index') }}" class="text-muted">{{ __('breadcrumb.sampradays') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.add_sampraday') }}</a>
|
||||
</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_sampraday_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.sampraday.store','id' => 'createJatiForm', 'files' => true]) }}
|
||||
@include('backend.sampraday.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
var dharma_id = false;
|
||||
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': "{{ csrf_token() }}"
|
||||
}
|
||||
});
|
||||
|
||||
function demo1() {
|
||||
|
||||
}
|
||||
|
||||
function getGachadhiPati() {
|
||||
$.ajax({
|
||||
url: "{{ route('admin.dharma.gachadhi-pati') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
'dharma_id': $('#dharma').val(),
|
||||
},
|
||||
success: function (data) {
|
||||
$('#sants').empty();
|
||||
var emptyOption = new Option('Select the class name', '', false, false);
|
||||
$('#sants').append(emptyOption);
|
||||
$.each(data.gachadhi_paties, function (index, gachadhi_pati) {
|
||||
if (dharma_id == gachadhi_pati.id) {
|
||||
var newOption = new Option(gachadhi_pati.name, gachadhi_pati.id, true, true);
|
||||
} else {
|
||||
var newOption = new Option(gachadhi_pati.name, gachadhi_pati.id, false, false);
|
||||
}
|
||||
$('#sants').append(newOption);
|
||||
});
|
||||
$('#sants').selectpicker('refresh');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$(document).on('change', '#dharma', function (e) {
|
||||
getGachadhiPati();
|
||||
});
|
||||
$("#createJatiForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
},
|
||||
dharma_id: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('dropdown')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
141
resources/views/backend/sampraday/edit.blade.php
Normal file
141
resources/views/backend/sampraday/edit.blade.php
Normal file
@@ -0,0 +1,141 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_sampraday_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.sampraday.index') }}" class="text-muted">{{ __('breadcrumb.sampradays') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.edit_sampraday') }}</a>
|
||||
</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_sampraday_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($sampraday,['route' => ['admin.sampraday.update', $sampraday->id],'method' => 'PATCH','id' => 'updateJatiForm', 'files' => true]) }}
|
||||
@include('backend.sampraday.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
|
||||
var dharma_id = "{{ isset($sampraday) ? $sampraday->dharma_id : false}}";
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': "{{ csrf_token() }}"
|
||||
}
|
||||
});
|
||||
function getGachadhiPati() {
|
||||
$('#sants').selectpicker('destroy');
|
||||
$.ajax({
|
||||
url: "{{ route('admin.dharma.gachadhi-pati') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
'dharma_id': $('#dharma').val(),
|
||||
},
|
||||
success: function (data) {
|
||||
$('#sants').empty();
|
||||
var emptyOption = new Option('Select the class name', '', false, false);
|
||||
$('#sants').append(emptyOption);
|
||||
$.each(data.gachadhi_paties, function (index, gachadhi_pati) {
|
||||
if (dharma_id == gachadhi_pati.id) {
|
||||
var newOption = new Option(gachadhi_pati.name, gachadhi_pati.id, true, true);
|
||||
} else {
|
||||
var newOption = new Option(gachadhi_pati.name, gachadhi_pati.id, false, false);
|
||||
}
|
||||
$('#sants').append(newOption);
|
||||
});
|
||||
$('#sants').selectpicker('refresh').trigger('change');
|
||||
}
|
||||
})
|
||||
}
|
||||
function demo1() {
|
||||
|
||||
$("#updateJatiForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
},
|
||||
dharma_id: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('dropdown')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (dharma_id > 0) {
|
||||
getGachadhiPati();
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$(document).on('change', '#dharma', function (e) {
|
||||
getGachadhiPati();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="{{ asset('/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
@endsection
|
||||
217
resources/views/backend/sampraday/list.blade.php
Normal file
217
resources/views/backend/sampraday/list.blade.php
Normal file
@@ -0,0 +1,217 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_sampraday_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.sampradays') }}
|
||||
</li>
|
||||
<!--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_sampraday_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.sampraday.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_sampraday') }}
|
||||
</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('name',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.sampraday_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.sampraday_listing_heading_6') }}</th>
|
||||
<th>{{ __('label.created_at') }}</th>
|
||||
<th>{{ __('label.sampraday_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.sampraday.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.sampraday.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.sampraday.grid.records.action') }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'dharma_id',
|
||||
name: 'dharma_id',
|
||||
},
|
||||
{
|
||||
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: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 1,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
53
resources/views/backend/sampraday/partials/_form.blade.php
Normal file
53
resources/views/backend/sampraday/partials/_form.blade.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.sampraday_form_name') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.sampraday_name')]) }}
|
||||
@error('name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.jati_dharma_name') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::select('dharma_id', $dharma, (isset($sampraday->dharma_id) && !empty($sampraday->dharma_id)) ? $sampraday->dharma_id : null,['id' => 'dharma', 'class' => $errors->has('dharma_id') ? 'form-control selectpicker is-invalid dharma' : 'form-control selectpicker','title' => __('placeholder.jati_dharma_name'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('dharma_id')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.listing_sampraday_form_gachadhi_pati') }}</label>
|
||||
{{ Form::select('sant_id', [], (isset($sampraday->sant_id) && !empty($sampraday->sant_id)) ? $sampraday->sant_id : null,['id' => 'sants', 'class' => $errors->has('sant_id') ? 'form-control selectpicker is-invalid guru_id' : 'form-control selectpicker','title' => __('placeholder.sant_guru'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('sant_id')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-group row">
|
||||
<label class="col-1 col-form-label">{{ __('label.status') }}</label>
|
||||
<div class="col-3">
|
||||
<span class="switch switch-outline switch-icon switch-primary">
|
||||
<label>
|
||||
{{ Form::checkbox('status',$sampraday->status ?? null,isset($sampraday->status) && $sampraday->status == 1 ? 'checked' : '') }}
|
||||
<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.sampraday.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.sampraday.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
172
resources/views/backend/sangh/detail.blade.php
Normal file
172
resources/views/backend/sangh/detail.blade.php
Normal file
@@ -0,0 +1,172 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.view_sangh_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.sanghs.index') }}" class="text-muted">{{ __('breadcrumb.sangh') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.view_sangh_request') }}
|
||||
</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.view_sangh_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($sangh,['route' => ['admin.sanghs.update', $sangh->id],'method' => 'PATCH','id' => 'updateSanghForm', 'files' => true]) }}
|
||||
@include('backend.sangh.partials._form')
|
||||
{{ Form::close() }}
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAoZv-67UKDVz5Rp3fa3e2xcHunahFGKOc&libraries=places"></script>
|
||||
<script>
|
||||
function initializeAutocomplete() {
|
||||
const input = document.getElementById('sangh_address');
|
||||
const autocomplete = new google.maps.places.Autocomplete(input, {
|
||||
types: ['geocode'],
|
||||
componentRestrictions: {'country': ['IN']}
|
||||
});
|
||||
|
||||
autocomplete.addListener('place_changed', function() {
|
||||
const place = autocomplete.getPlace();
|
||||
lat = place.geometry.location.lat();
|
||||
lng = place.geometry.location.lng();
|
||||
document.getElementById('latitude').value = lat;
|
||||
document.getElementById('longitude').value = lng;
|
||||
|
||||
|
||||
input.value = place.formatted_address;
|
||||
});
|
||||
}
|
||||
|
||||
google.maps.event.addDomListener(window, 'load', initializeAutocomplete);
|
||||
|
||||
|
||||
|
||||
function demo1() {
|
||||
$("#updateSanghForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
// sangh_type: {
|
||||
// required: true,
|
||||
// },
|
||||
// state: {
|
||||
// required: true,
|
||||
// },
|
||||
// city: {
|
||||
// required: true,
|
||||
// },
|
||||
sangh_address: {
|
||||
required: true,
|
||||
},
|
||||
sangh_name: {
|
||||
required: true,
|
||||
},
|
||||
// number_of_members: {
|
||||
// required: true,
|
||||
// },
|
||||
// aaradhana_bhavan: {
|
||||
// required: true,
|
||||
// },
|
||||
// pathshala: {
|
||||
// required: true,
|
||||
// },
|
||||
// number_of_students: {
|
||||
// required: true,
|
||||
// },
|
||||
// library: {
|
||||
// required: true,
|
||||
// },
|
||||
// aayambilshala: {
|
||||
// required: true,
|
||||
// },
|
||||
// bhojanshala: {
|
||||
// required: true,
|
||||
// },
|
||||
// tiffin_service: {
|
||||
// required: true,
|
||||
// },
|
||||
// mahila_mandal: {
|
||||
// required: true,
|
||||
// },
|
||||
reject_reason: {
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
form.submit();
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
this.element(element);
|
||||
},
|
||||
errorPlacement: function ( error, element ) {
|
||||
if(element.parent().hasClass('dropdown')){
|
||||
error.insertAfter( element.parent() );
|
||||
} else{
|
||||
error.insertAfter( element );
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("input[name$='status']").change(function(){
|
||||
if ($(this).val() === 'Rejected') {
|
||||
$('.reject_reason').show();
|
||||
} else if ($(this).val() === 'Approved' || $(this).val() === '') {
|
||||
$('.reject_reason').hide();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
187
resources/views/backend/sangh/list.blade.php
Normal file
187
resources/views/backend/sangh/list.blade.php
Normal file
@@ -0,0 +1,187 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_sanghs_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 active">
|
||||
{{ __('breadcrumb.sangh') }}
|
||||
</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_sanghs_table_title') }}</h3>
|
||||
</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('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','placeholder' => __('label.search')]) }}
|
||||
</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>
|
||||
<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="sangh-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.sangh_listing_heading_1') }}</th>
|
||||
<th>{{ __('label.sangh_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.sangh_listing_heading_3') }}</th>
|
||||
<th>{{ __('label.sangh_listing_heading_4') }}</th>
|
||||
<th>{{ __('label.sangh_listing_heading_5') }}</th>
|
||||
<th>{{ __('label.sangh_listing_heading_6') }}</th>
|
||||
<th>{{ __('label.sangh_listing_heading_7') }}</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('click', '#kt_reset', function () {
|
||||
$('#kt_reset').hide();
|
||||
});
|
||||
|
||||
customDataTableWidget.configuration({
|
||||
element: '#sangh-table',
|
||||
listingUrl: "{{ route('admin.sanghs.listing') }}",
|
||||
deleteUrl: "{{ route("admin.hospitals.destroy", ":id") }}",
|
||||
multipleActionUrl: "",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'sangh_type',
|
||||
name: 'sangh_type',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'dharma',
|
||||
name: 'dharma',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'sampraday',
|
||||
name: 'sampraday',
|
||||
searchable: false,
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'mobile_number',
|
||||
name: 'mobile_number',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'status',
|
||||
name: 'status',
|
||||
sortable: false,
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 0,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
413
resources/views/backend/sangh/partials/_form.blade.php
Normal file
413
resources/views/backend/sangh/partials/_form.blade.php
Normal file
@@ -0,0 +1,413 @@
|
||||
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Sangh DB Id</label>
|
||||
<input disabled type="text" class="form-control" placeholder="Trust Registration Number" value="{{ $sangh->id }}" name="sangh_id">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Sangh Type<span class="text-danger">*</span></label>
|
||||
<select class="form-control" name="sangh_type" disabled>
|
||||
<option disabled selected>Please select sangh</option>
|
||||
@foreach (config('common-variables.sangh_types') as $type)
|
||||
<option value="{{ $type['id'] }}" {{ $type['id'] == $sangh->sangh_type ? 'selected' : '' }}>{{ $type['value'] }}</option>
|
||||
@endforeach
|
||||
@error('sangh_type')
|
||||
<div class="alert alert-danger">{{ $message }}</div>
|
||||
@enderror
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Derasar Type</label>
|
||||
<select class="form-control" name="derasar_type" disabled>
|
||||
<option disabled selected>Please select derasar</option>
|
||||
@foreach (config('common-variables.derasar_type') as $type)
|
||||
<option value="{{ $type['id'] }}" {{ $type['id'] == $sangh->type_of_template ? 'selected' : '' }} >{{ $type['value'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Dharma</label>
|
||||
<select class="form-control" name="dharma" disabled>
|
||||
<option disabled selected>Please select dharma</option>
|
||||
@foreach($dharma as $item)
|
||||
<option value="{{ $item->id }}" {{ $item->id == $sangh->dharma_id ? 'selected' : '' }} >{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Sampraday</label>
|
||||
<select class="form-control" name="sampraday" disabled>
|
||||
<option disabled selected>Please select sampraday</option>
|
||||
@foreach($sampraday as $item)
|
||||
<option value="{{ $item->id }}" {{ $item->id == $sangh->sampraday_id ? 'selected' : '' }} >{{ $item->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Mulnayak Bhagwan Name</label>
|
||||
<select class="form-control" name="mulnayak_bhagwan_name" disabled>
|
||||
<option disabled selected>Please select sampraday</option>
|
||||
@foreach (config('common-variables.mulnayak_bhagwan') as $type)
|
||||
<option value="{{ $type['id'] }}" {{ $type['id'] == $sangh->mulnayak_bhagwan_name ? 'selected' : '' }}>{{ $type['value'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Sangh name<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" placeholder="Sangh name" value="{{ $sangh->name }}" name="sangh_name">
|
||||
@error('sangh_name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Trust Registration Number</label>
|
||||
<input disabled type="text" class="form-control" placeholder="Trust Registration Number" value="{{ $sangh->reg_number }}" name="trust_registration_number">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Trust Registration Date</label>
|
||||
<input type="text" disabled class="form-control" placeholder="Trust Registration Date" name="trust_registration_date" value="{{ $sangh->reg_date }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>State<span class="text-danger">*</span></label>
|
||||
<input disabled type="text" class="form-control" placeholder="State" name="state" value="{{ $sangh->state }}">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>City<span class="text-danger">*</span></label>
|
||||
<input disabled type="text" class="form-control" placeholder="City" name="city" value="{{ $sangh->city }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Sangh Address<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="sangh_address" placeholder="Sangh Address" name="sangh_address" value="{{ $sangh->address }}">
|
||||
</div>
|
||||
<input type="hidden" id="latitude" name="latitude" value="{{ $sangh->latitude }}">
|
||||
<input type="hidden" id="longitude" name="longitude" value="{{ $sangh->longitude }}">
|
||||
<div class="col-md-6">
|
||||
<label>House No / Apartment Name</label>
|
||||
<input disabled type="text" class="form-control" placeholder="House No / Apartment Name" name="apartment_name" value="{{ $sangh->apartment_name }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Pedhi / Manager Mobile Number<span class="text-danger">*</span></label>
|
||||
<input type="text" disabled class="form-control" placeholder="Pedhi / Manager Mobile Number" name="mobile_number" value="{{ $sangh->mobile_number }}">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Email Address</label>
|
||||
<input disabled type="textarea" class="form-control" placeholder="Email Address" name="email_address" value="{{ $sangh->email }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Sangh Website</label>
|
||||
<input disabled type="text" class="form-control" placeholder="Sangh Website" name="sangh_website" value="{{ $sangh->sangh_website }}">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>Number Of Members<span class="text-danger">*</span></label>
|
||||
<select class="form-control" name="number_of_members" disabled>
|
||||
<option disabled selected>Please select sampraday</option>
|
||||
@foreach (config('common-variables.number_of_members') as $type)
|
||||
<option value="{{ $type['id'] }}" {{ $type['id'] == $sangh->number_of_members ? 'selected' : '' }}>{{ $type['value'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>More About Sangh</label>
|
||||
<input disabled type="textarea" class="form-control" placeholder="More about sangh" name="more_about_sangh" value="{{ $sangh->about }}">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
</div>
|
||||
<h2> Facilities of Sangh </h2>
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Swapna Chadawa Organised</label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="swapna_chadawa_organised" {{ $sangh->swapna_chadawa_organised_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="swapna_chadawa_organised" {{ $sangh->swapna_chadawa_organised_status == 0 ? 'checked' : '' }}/>
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Aaradhana Bhavan<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label disabled class="radio">
|
||||
<input type="radio" name="aaradhana_bhavan" {{ $sangh->aaradhana_bhavan_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="aaradhana_bhavan" {{ $sangh->aaradhana_bhavan_status == 0 ? 'checked' : '' }}/>
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Pathshala<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="pathshala" {{ $sangh->pathshala_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="pathshala" {{ $sangh->pathshala_status == 0 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@if($sangh->pathshala_status === 1)
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Number Of Students<span class="text-danger">*</span></label>
|
||||
{{-- <input type="text" class="form-control" placeholder="Number Of Students" name="number-of-students">--}}
|
||||
<select class="form-control" name="number_of_students" disabled>
|
||||
<option disabled selected>Please select number of students</option>
|
||||
@foreach (config('common-variables.number_of_students') as $type)
|
||||
<option value="{{ $type['id'] }}" {{ $type['id'] == $sangh->no_of_students ? 'selected' : '' }}>{{ $type['value'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Library (Gyanbhandar)<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="library" {{ $sangh->library_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="library" {{ $sangh->library_status == 0 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@if($sangh->library_status === 1)
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Library Name <span class="text-danger">*</span></label>
|
||||
<input disabled type="text" class="form-control" placeholder="Library Name" name="library_name" value="{{ $sangh->library_name }}">
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Librarian Name <span class="text-danger">*</span></label>
|
||||
<input disabled type="text" class="form-control" placeholder="Librarian Name" name="librarian_name" value="{{ $sangh->librarian_name }}">
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Mobile no. <span class="text-danger">*</span></label>
|
||||
<input disabled type="text" class="form-control" placeholder="Librarian Mobile Number" name="librarian_mobile_number" value="{{ $sangh->librarian_mobile_number }}">
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Number Of Books <span class="text-danger">*</span></label>
|
||||
<select class="form-control" name="number_of_books" disabled>
|
||||
<option disabled selected>Number of books</option>
|
||||
@foreach (config('common-variables.number_of_books') as $type)
|
||||
<option value="{{ $type['id'] }}" {{ $type['id'] == $sangh->number_of_books ? 'selected' : '' }}>{{ $type['value'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Aayambilshala<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="aayambilshala" {{ $sangh->aayambilshala_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="aayambilshala" {{ $sangh->aayambilshala_status == 0 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Bhojanshala<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="bhojanshala" {{ $sangh->bhojanshala_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="bhojanshala" {{ $sangh->bhojanshala_status == 0 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Tiffin Service<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="tiffin_service" {{ $sangh->tifin_service_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="tiffin_service" {{ $sangh->tifin_service_status == 0 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Mahila Mandal<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="mahila_mandal" {{ $sangh->mahila_mandal_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="mahila_mandal" {{ $sangh->mahila_mandal_status == 0 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
<label>Yuva Mandal<span class="text-danger">*</span></label>
|
||||
<div class="radio-inline">
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="yuva_mandal" {{ $sangh->yuva_mandal_status == 1 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Yes
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input disabled type="radio" name="yuva_mandal" {{ $sangh->yuva_mandal_status == 0 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
No
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Sangh Bank Details</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group">
|
||||
<label>Bank Account Number</label>
|
||||
<input disabled type="text" class="form-control" placeholder="Bank Account Number" name="bank_account_number" value="{{ $sangh->bank_account_number }}">
|
||||
</div>
|
||||
<div class="col-md-6 form-group">
|
||||
<label>IFSC</label>
|
||||
<input disabled type="text" class="form-control" placeholder="IFSC" name="ifsc" value="{{ $sangh->bank_ifsc }}" >
|
||||
</div>
|
||||
</div>
|
||||
<h2>Bank Branch</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group">
|
||||
<label>Bank Branch</label>
|
||||
<input disabled type="text" class="form-control" placeholder="Bank Branch" name="bank_branch" value="{{ $sangh->bank_branch }}" >
|
||||
</div>
|
||||
<div class="col-md-6 form-group">
|
||||
<label>UPI ID</label>
|
||||
<input disabled type="text" class="form-control" placeholder="UPI ID" name="upi_id" value="{{ $sangh->bank_upi_id }}" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Created By</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group">
|
||||
<label>User Name</label>
|
||||
<input disabled type="text" class="form-control" placeholder="User Name" name="user_name" value="{{ $sangh->createdBy->name }}" >
|
||||
</div>
|
||||
<div class="col-md-6 form-group">
|
||||
<label>User Mobile</label>
|
||||
<input disabled type="text" class="form-control" placeholder="User Mobile" name="user_mobile" value="{{ $sangh->createdBy->mobile}}" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6 form-group">
|
||||
<!-- <label>Upload QR Code <span class="text-danger">*</span></label><br>
|
||||
<input type="file" class="valid" name="qr-code"> -->
|
||||
<div class="image-input image-input-outline" id="kt_image_1">
|
||||
<label>QR Image</label>
|
||||
<div class="image-input-wrapper" style="background-image: url('{{ asset($sangh->bank_qr_code) }}')"></div>
|
||||
<span class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow" data-action="cancel"
|
||||
data-toggle="tooltip" title="Cancel avatar">
|
||||
<i class="ki ki-bold-close icon-xs text-muted"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 form-group">
|
||||
{{-- <label>Change Profile Image</label><br>--}}
|
||||
{{-- <input type="file" class="valid" name="qr-code">--}}
|
||||
<div class="image-input image-input-outline" id="kt_image_1">
|
||||
<label>Avatar Image<span class="text-danger">*</span></label>
|
||||
<div class="image-input-wrapper" style="background-image: url('{{ asset($sangh->avatar) }}')"></div>
|
||||
<span class="btn btn-xs btn-icon btn-circle btn-white btn-hover-text-primary btn-shadow" data-action="cancel"
|
||||
data-toggle="tooltip" title="Cancel avatar">
|
||||
<i class="ki ki-bold-close icon-xs text-muted"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if($sangh->sangh_status == 0 || $sangh->sangh_status == 2)
|
||||
<div class="row">
|
||||
<div class="col-md-4 form-group">
|
||||
{{-- <label>Rejection Reason</label>
|
||||
<textarea type="text" class="form-control" placeholder="Rejection reason" id="reject_reason" name="reject_reason" >{{ $sangh->reject_reason }}</textarea> --}}
|
||||
<div class="radio-inline">
|
||||
<label class="radio radio-success">
|
||||
<input type="radio" value="Approved" name="status" />
|
||||
<span></span>
|
||||
Approved
|
||||
</label>
|
||||
<label class="radio">
|
||||
<input type="radio" value="Rejected" name="status" {{ $sangh->sangh_status == 2 ? 'checked' : '' }} />
|
||||
<span></span>
|
||||
Rejected
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if($sangh->sangh_status == 0 || $sangh->sangh_status == 2 )
|
||||
<div class="row">
|
||||
<div class="col-md-4 reject_reason form-group" style="{{ ($sangh->sangh_status == 2) ? 'display:block' : "display:none" }}">
|
||||
<label>Rejection Reason:</label>
|
||||
<textarea type="text" class="form-control" placeholder="Rejection reason" id="reject_reason" name="reject_reason" >{{ $sangh->reject_reason }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button class="btn btn-success">Update</button>
|
||||
<!-- <button type="submit" name="reject" class="btn btn-danger mr-2">Cancel</button> -->
|
||||
<a href="{{ route('admin.sanghs.index') }}" class="btn btn-secondary">Cancel</a>
|
||||
</div>
|
||||
203
resources/views/backend/sant/create.blade.php
Normal file
203
resources/views/backend/sant/create.blade.php
Normal file
@@ -0,0 +1,203 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_sant_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.sant.index') }}" class="text-muted">{{ __('breadcrumb.sants') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.add_sant') }}
|
||||
</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_sant_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.sant.store','id' => 'createSantForm', 'files' => true]) }}
|
||||
@include('backend.sant.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
var dharma_id = false;
|
||||
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': "{{ csrf_token() }}"
|
||||
}
|
||||
});
|
||||
|
||||
function getSampraday() {
|
||||
$.ajax({
|
||||
url: "{{ route('admin.dharma.sampradaies') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
'dharma_id': $('#dharma').val(),
|
||||
},
|
||||
success: function (data) {
|
||||
$('#sampradaies').empty();
|
||||
console.log(data);
|
||||
// var emptyOption = new Option('Select the sampraday name', '', false, false);
|
||||
// $('#sampradaies').append(emptyOption);
|
||||
$.each(data.sampradaies, function (index, sampraday) {
|
||||
console.log(sampraday);
|
||||
if (dharma_id == sampraday.id) {
|
||||
var newOption = new Option(sampraday.name, sampraday.id, true, true);
|
||||
} else {
|
||||
var newOption = new Option(sampraday.name, sampraday.id, false, false);
|
||||
}
|
||||
$('#sampradaies').append(newOption);
|
||||
});
|
||||
$('#sampradaies').selectpicker('refresh');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var input = document.getElementById('honor'),
|
||||
// init Tagify script on the above inputs
|
||||
tagify = new Tagify(input, {
|
||||
whitelist: '',
|
||||
duplicates :true
|
||||
})
|
||||
|
||||
// "remove all honors" button event listener
|
||||
document.getElementById('honor_remove').addEventListener('click', tagify.removeAllTags.bind(tagify));
|
||||
|
||||
// Chainable event listeners
|
||||
tagify.on('add', onAddTag)
|
||||
|
||||
// tag added callback
|
||||
function onAddTag(e) {
|
||||
tagify.off('add', onAddTag) // exmaple of removing a custom Tagify event
|
||||
}
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$(document).on('change', '#dharma', function (e) {
|
||||
getSampraday();
|
||||
});
|
||||
$("#createSantForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var maxFileLimit = 5 * 1000000;
|
||||
$(document).on('change', '.avatar-image', function () {
|
||||
viewAvatarImage(this);
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
});
|
||||
function viewAvatarImage(input) {
|
||||
if (input.files && input.files[0]) {
|
||||
var file = input.files[0];
|
||||
if (file.size < maxFileLimit) {
|
||||
var fileType = file["type"];
|
||||
var validImageTypes = ["image/jpg", "image/jpeg", "image/png"];
|
||||
if ($.inArray(fileType, validImageTypes) > 0) {
|
||||
// invalid file type code goes here.
|
||||
var reader = new FileReader();
|
||||
reader.onload = function (e) {
|
||||
$('.avatar-image-preview').attr('src', e.target.result);
|
||||
$('.avatar-image-preview-div').css('display', 'flex');
|
||||
}
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.image_type") }}');
|
||||
}
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.max_image_size") }}');
|
||||
}
|
||||
}
|
||||
}
|
||||
$(document).on('click', '.avatar-image-remove-button', function () {
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
$('.avatar-image').val('');
|
||||
$('.avatar-image-preview-div').css('display', 'none');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
});
|
||||
</script>
|
||||
|
||||
{{-- Google Map script --}}
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAoZv-67UKDVz5Rp3fa3e2xcHunahFGKOc&libraries=places&callback=dummy"></script>
|
||||
<script>
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
function initialize() {
|
||||
var input = document.getElementById('diksha_place');
|
||||
var autocomplete = new google.maps.places.Autocomplete(input);
|
||||
autocomplete.addListener('place_changed', function () {
|
||||
var place = autocomplete.getPlace();
|
||||
$('#latitude_show').val(place.geometry['location'].lat());
|
||||
$('#longitude_show').val(place.geometry['location'].lng());
|
||||
$('#diksha_place_latitude').val(place.geometry['location'].lat());
|
||||
$('#diksha_place_longitude').val(place.geometry['location'].lng());
|
||||
$("#latitudeArea").removeAttr('hidden');
|
||||
$("#longtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
219
resources/views/backend/sant/edit.blade.php
Normal file
219
resources/views/backend/sant/edit.blade.php
Normal file
@@ -0,0 +1,219 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_sant_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.sant.index') }}" class="text-muted">{{ __('breadcrumb.sants') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.edit_sant') }}
|
||||
</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_sant_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($sant,['route' => ['admin.sant.update', $sant->id],'method' => 'PATCH','id' => 'updateSantForm', 'files' => true]) }}
|
||||
@include('backend.sant.partials._form')
|
||||
{{ Form::close() }}
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
var dharma_id = "{{ isset($sant) ? $sant->sampraday_id : false}}";
|
||||
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': "{{ csrf_token() }}"
|
||||
}
|
||||
});
|
||||
|
||||
function getSampraday() {
|
||||
$.ajax({
|
||||
url: "{{ route('admin.dharma.sampradaies') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
'dharma_id': $('#dharma').val(),
|
||||
},
|
||||
success: function (data) {
|
||||
$('#sampradaies').empty();
|
||||
console.log(data);
|
||||
// var emptyOption = new Option('Select the sampraday name', '', false, false);
|
||||
// $('#sampradaies').append(emptyOption);
|
||||
$.each(data.sampradaies, function (index, sampraday) {
|
||||
console.log(sampraday);
|
||||
if (dharma_id == sampraday.id) {
|
||||
var newOption = new Option(sampraday.name, sampraday.id, true, true);
|
||||
} else {
|
||||
var newOption = new Option(sampraday.name, sampraday.id, false, false);
|
||||
}
|
||||
$('#sampradaies').append(newOption);
|
||||
});
|
||||
$('#sampradaies').selectpicker('refresh');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var input = document.getElementById('honor'),
|
||||
// init Tagify script on the above inputs
|
||||
tagify = new Tagify(input, {
|
||||
whitelist: {!! collect($sant->honor) !!},
|
||||
duplicates :true
|
||||
})
|
||||
|
||||
// "remove all honors" button event listener
|
||||
document.getElementById('honor_remove').addEventListener('click', tagify.removeAllTags.bind(tagify));
|
||||
|
||||
// Chainable event listeners
|
||||
tagify.on('add', onAddTag)
|
||||
|
||||
// tag added callback
|
||||
function onAddTag(e) {
|
||||
tagify.off('add', onAddTag) // exmaple of removing a custom Tagify event
|
||||
}
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
});
|
||||
|
||||
if (dharma_id > 0) {
|
||||
getSampraday();
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$(document).on('change', '#dharma', function (e) {
|
||||
getSampraday();
|
||||
});
|
||||
|
||||
$(document).on('change', '#dharmaCheckbox', function (e) {
|
||||
var isChecked = $('#dharmaCheckbox').is(":checked");
|
||||
if (isChecked) {
|
||||
$('#sampradayCheckbox').prop('checked', true);
|
||||
} else {
|
||||
$('#sampradayCheckbox').prop('checked', false);
|
||||
}
|
||||
});
|
||||
|
||||
$("#updateSantForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var maxFileLimit = 5 * 1000000;
|
||||
$(document).on('change', '.avatar-image', function () {
|
||||
viewAvatarImage(this);
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
});
|
||||
function viewAvatarImage(input) {
|
||||
if (input.files && input.files[0]) {
|
||||
var file = input.files[0];
|
||||
if (file.size < maxFileLimit) {
|
||||
var fileType = file["type"];
|
||||
var validImageTypes = ["image/jpg", "image/jpeg", "image/png"];
|
||||
if ($.inArray(fileType, validImageTypes) > 0) {
|
||||
// invalid file type code goes here.
|
||||
var reader = new FileReader();
|
||||
reader.onload = function (e) {
|
||||
$('.avatar-image-preview').attr('src', e.target.result);
|
||||
$('.avatar-image-preview-div').css('display', 'flex');
|
||||
}
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.image_type") }}');
|
||||
}
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.max_image_size") }}');
|
||||
}
|
||||
}
|
||||
}
|
||||
$(document).on('click', '#avatar-image-remove-button', function () {
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
$('.avatar-image').val('');
|
||||
$('.avatar-image-preview-div').css('display', 'none');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
});
|
||||
|
||||
</script>
|
||||
<script src="{{ asset('public/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
|
||||
{{-- Google Map script --}}
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAoZv-67UKDVz5Rp3fa3e2xcHunahFGKOc&libraries=places&callback=dummy"></script>
|
||||
<script>
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
function initialize() {
|
||||
var input = document.getElementById('diksha_place');
|
||||
var autocomplete = new google.maps.places.Autocomplete(input);
|
||||
autocomplete.addListener('place_changed', function () {
|
||||
var place = autocomplete.getPlace();
|
||||
$('#latitude_show').val(place.geometry['location'].lat());
|
||||
$('#longitude_show').val(place.geometry['location'].lng());
|
||||
$('#diksha_place_latitude').val(place.geometry['location'].lat());
|
||||
$('#diksha_place_longitude').val(place.geometry['location'].lng());
|
||||
$("#latitudeArea").removeAttr('hidden');
|
||||
$("#longtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
394
resources/views/backend/sant/list.blade.php
Normal file
394
resources/views/backend/sant/list.blade.php
Normal file
@@ -0,0 +1,394 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_sant_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.sants') }}
|
||||
</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_sant_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!-- begin::Button -->
|
||||
<form id="import" action="{{route('admin.sant.import-sant')}}" method="POST" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<input type="file" id="file" class="file-input" name="file" accept=".xlsx, .csv, .xls" data-original-title="import" required>
|
||||
<button class="btn btn-success font-weight-bolder mr-2" type="submit">
|
||||
<i class="fas fa-upload fa-sm"></i> {{ __('buttons.import') }}
|
||||
</button>
|
||||
</form>
|
||||
<!--end::Button-->
|
||||
<!-- begin::Button -->
|
||||
<a href="{{ route('admin.sant.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_sant') }}
|
||||
</a>
|
||||
<!--end::Button-->
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: right; margin-right:25px;">
|
||||
<a href="{{ asset('assets/sample_sant.xlsx') }}" class="btn btn-sm btn-secondary font-weight-bolder">
|
||||
<i class="fas fa-download fa-sm"></i> Download Sample File
|
||||
</a>
|
||||
</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('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','placeholder' => __('label.search')]) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 my-2 my-md-0">
|
||||
<div class="d-flex align-items-center">
|
||||
{{ Form::select('status',['2' => 'Active','1' => 'Inactive'],null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'status', 'data-live-search' => 'true','data-allow-clear' => 'true', 'title' => __('placeholder.select_status')]) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 my-2 my-md-0">
|
||||
<div class="d-flex align-items-center">
|
||||
{{ Form::select('verification_status',['1' => 'Approved', '2' => 'In-Review', '3' => 'Sent Back', '4' => 'Approved & In-Review', '5' => 'Approved & Sent back', '6' => 'Rejected'],null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'status', 'data-live-search' => 'true','data-allow-clear' => 'true', 'title' => __('placeholder.select_verification_status')]) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 my-2 my-md-0">
|
||||
<div class="d-flex align-items-center">
|
||||
{{ Form::select('dharma_id', $dharmas, null, ['class' => 'form-control selectpicker datatable-input change-action','id' => 'dharma_id', 'data-live-search' => 'true','data-allow-clear' => 'true', 'title' => __('placeholder.sant_select_dharma')]) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 my-2 my-md-0">
|
||||
<div class="d-flex align-items-center">
|
||||
{{ Form::select('sampraday_id', $sampradaies, null, ['class' => 'form-control selectpicker datatable-input change-action','id' => 'sampraday_id', 'data-live-search' => 'true','title' => __('placeholder.sant_select_sampraday')]) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 my-md-0">
|
||||
<button class="btn btn-secondary btn-secondary--icon" id="kt_reset" style="display: none; margin-top:10px;">
|
||||
<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 table table-hover responsive nowrap"
|
||||
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.sant_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.sant_listing_heading_3') }}</th>
|
||||
<th>{{ __('label.sant_listing_heading_4') }}</th>
|
||||
<th>{{ __('label.sant_listing_heading_5') }}</th>
|
||||
{{-- <th>{{ __('label.created_at') }}</th> --}}
|
||||
<th>{{ __('label.updated_at') }}</th>
|
||||
<th>{{ __('label.thana') }}</th>
|
||||
{{-- <th class="text-wrap">{{ __('label.approved_thana') }}</th>
|
||||
<th class="text-wrap">{{ __('label.pending_thana') }}</th> --}}
|
||||
<th class="text-wrap">{{ __('label.sant_verification_status') }}</th>
|
||||
<th>{{ __('label.sant_listing_heading_6') }}</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="https://cdn.datatables.net/responsive/1.0.4/js/dataTables.responsive.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).ready(function() {
|
||||
$("#users-table").DataTable({
|
||||
aaSorting: [],
|
||||
responsive: true,
|
||||
|
||||
columnDefs: [
|
||||
{
|
||||
responsivePriority: 1,
|
||||
targets: 0
|
||||
},
|
||||
{
|
||||
responsivePriority: 2,
|
||||
targets: -1
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
$(".dataTables_filter input")
|
||||
.attr("placeholder", "Search here...")
|
||||
.css({
|
||||
width: "300px",
|
||||
display: "inline-block"
|
||||
});
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
});
|
||||
</script> --}}
|
||||
<script>
|
||||
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': "{{ csrf_token() }}"
|
||||
}
|
||||
});
|
||||
|
||||
function getSampraday() {
|
||||
$.ajax({
|
||||
url: "{{ route('admin.dharma.sampradaies') }}",
|
||||
type: "POST",
|
||||
data: {
|
||||
'dharma_id': $('#dharma_id').val(),
|
||||
},
|
||||
success: function (data) {
|
||||
$('#sampraday_id').empty();
|
||||
console.log(data);
|
||||
var emptyOption = new Option('Select the sampraday name', '', false, false);
|
||||
// $('#sampraday_id').append(emptyOption);
|
||||
$.each(data.sampradaies, function (index, sampraday) {
|
||||
console.log(sampraday);
|
||||
if (dharma_id == sampraday.id) {
|
||||
var newOption = new Option(sampraday.name, sampraday.id, true, true);
|
||||
} else {
|
||||
var newOption = new Option(sampraday.name, sampraday.id, false, false);
|
||||
}
|
||||
$('#sampraday_id').append(newOption);
|
||||
});
|
||||
$('#sampraday_id').selectpicker('refresh');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$(document).on('keyup', '#title', function () {
|
||||
if ($('#title').val() === '' && $('#status').val() === '' && $('#dharma_id').val() === '' && $('#sampraday_id').val() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('change', '#status', function () {
|
||||
if ($('#title').val() === '' && $('#status').val() === '' && $('#verification_status').val() === '' && $('#dharma_id').val() === '' && $('#sampraday_id').val() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('change', '#verification_status', function () {
|
||||
if ($('#title').val() === '' && $('#status').val() === '' && $('#verification_status').val() === '' && $('#dharma_id').val() === '' && $('#sampraday_id').val() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('change', '#dharma_id', function () {
|
||||
if ($('#title').val() === '' && $('#status').val() === '' && $('#verification_status').val() === '' && $('#dharma_id').val() === '' && $('#sampraday_id').val() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('change', '#dharma_id', function (e) {
|
||||
getSampraday();
|
||||
});
|
||||
|
||||
$(document).on('change', '#sampraday_id', function () {
|
||||
if ($('#title').val() === '' && $('#status').val() === '' && $('#verification_status').val() === '' && $('#dharma_id').val() === '' && $('#sampraday_id').val() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '#kt_reset', function () {
|
||||
$('#kt_reset').hide();
|
||||
$('#sampraday_id').empty();
|
||||
$('#sampraday_id').selectpicker('refresh');
|
||||
});
|
||||
|
||||
customDataTableWidget.configuration({
|
||||
element: '#users-table',
|
||||
listingUrl: "{{ route('admin.sant.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.sant.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.sant.grid.records.action') }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
class: "text-wrap",
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'sampraday_id',
|
||||
name: 'sampraday_id',
|
||||
class: "text-wrap",
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'dharma_id',
|
||||
name: 'dharma_id',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'status',
|
||||
name: 'status',
|
||||
},
|
||||
// {
|
||||
// data: 'created_at',
|
||||
// name: 'created_at',
|
||||
// },
|
||||
{
|
||||
data: 'updated_at',
|
||||
name: 'updated_at',
|
||||
},
|
||||
|
||||
{
|
||||
data: 'thana',
|
||||
name: 'thana',
|
||||
},
|
||||
// {
|
||||
// data: 'approved_thana',
|
||||
// name: 'approved_thana',
|
||||
// },
|
||||
// {
|
||||
// data: 'pending_thana',
|
||||
// name: 'pending_thana',
|
||||
// },
|
||||
{
|
||||
data: 'verification_status',
|
||||
name: 'verification_status',
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'status',
|
||||
type: 'select'
|
||||
},
|
||||
{
|
||||
key: 'verification_status',
|
||||
type: 'select'
|
||||
},
|
||||
{
|
||||
key: 'dharma_id',
|
||||
type: 'select'
|
||||
},
|
||||
{
|
||||
key: 'sampraday_id',
|
||||
type: 'select'
|
||||
},
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 5,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
521
resources/views/backend/sant/partials/_form.blade.php
Normal file
521
resources/views/backend/sant/partials/_form.blade.php
Normal file
@@ -0,0 +1,521 @@
|
||||
<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>
|
||||
112
resources/views/backend/sant/sant-chaturmas/create.blade.php
Normal file
112
resources/views/backend/sant/sant-chaturmas/create.blade.php
Normal file
@@ -0,0 +1,112 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title','Chaturmas'.' | '.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.sant.chaturmas.index', $sant->id) }}" class="text-muted">{{ __('breadcrumb.chaturmases') }}</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">
|
||||
Add Chaturmas
|
||||
</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.sant.chaturmas.store',$sant->id],'id' => 'createSantChaturmasForm', 'files' => true]) }}
|
||||
@include('backend.sant.sant-chaturmas.partials._form')
|
||||
{{ Form::close() }}
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createSantChaturmasForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{{-- Google Map script --}}
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAoZv-67UKDVz5Rp3fa3e2xcHunahFGKOc&libraries=places&callback=dummy"></script>
|
||||
<script>
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
function initialize() {
|
||||
var input = document.getElementById('place');
|
||||
var autocomplete = new google.maps.places.Autocomplete(input);
|
||||
autocomplete.addListener('place_changed', function () {
|
||||
var place = autocomplete.getPlace();
|
||||
var state = place.address_components.find(item => item.types.includes('administrative_area_level_1'));
|
||||
|
||||
$('#latitude_show').val(place.geometry['location'].lat());
|
||||
$('#longitude_show').val(place.geometry['location'].lng());
|
||||
$('#latitude').val(place.geometry['location'].lat());
|
||||
$('#longitude').val(place.geometry['location'].lng());
|
||||
$("#latitudeArea").removeAttr('hidden');
|
||||
$("#longtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
128
resources/views/backend/sant/sant-chaturmas/edit.blade.php
Normal file
128
resources/views/backend/sant/sant-chaturmas/edit.blade.php
Normal file
@@ -0,0 +1,128 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title','Chaturmas'.' | '.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.sant.chaturmas.index', $sant->id) }}" class="text-muted">{{ __('breadcrumb.chaturmases') }}</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">
|
||||
Edit Chaturmas
|
||||
</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($chaturma, ['route' => ['admin.sant.chaturmas.update', $sant->id, $chaturma->id], 'method' => 'PATCH', 'id' => 'createSantChaturmasForm', 'files' => true]) }}
|
||||
@include('backend.sant.sant-chaturmas.partials._form')
|
||||
{{ Form::close() }}
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createSantChaturmasForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
|
||||
var sants = "{{implode(',',$santName)}}";
|
||||
$('.approve-chaturmas').change(function() {
|
||||
if (this.checked && sants != "") {
|
||||
$('.approve-modal').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('.agree').click(function() {
|
||||
$('.approve-modal').hide();
|
||||
});
|
||||
|
||||
$('.close-modal').click(function(e) {
|
||||
$('.approve-modal').hide();
|
||||
$('input:checked').removeAttr('checked');
|
||||
$('.approve-chaturmas').click();
|
||||
e.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
{{-- Google Map script --}}
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAoZv-67UKDVz5Rp3fa3e2xcHunahFGKOc&libraries=places&callback=dummy"></script>
|
||||
<script>
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
function initialize() {
|
||||
var input = document.getElementById('place');
|
||||
var autocomplete = new google.maps.places.Autocomplete(input);
|
||||
autocomplete.addListener('place_changed', function () {
|
||||
var place = autocomplete.getPlace();
|
||||
$('#latitude_show').val(place.geometry['location'].lat());
|
||||
$('#longitude_show').val(place.geometry['location'].lng());
|
||||
$('#latitude').val(place.geometry['location'].lat());
|
||||
$('#longitude').val(place.geometry['location'].lng());
|
||||
$("#latitudeArea").removeAttr('hidden');
|
||||
$("#longtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
210
resources/views/backend/sant/sant-chaturmas/list.blade.php
Normal file
210
resources/views/backend/sant/sant-chaturmas/list.blade.php
Normal file
@@ -0,0 +1,210 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_chaturmas_table_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 active">
|
||||
<a href="{{ route('admin.sant.index') }}" class="text-muted">{{ __('breadcrumb.sants') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.chaturmases') }}
|
||||
</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>{{ $sant->name.'\'s' ?? "" }} {{ __('label.listing_chaturmas_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.sant.chaturmas.create',$sant->id) }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_chaturmas') }}
|
||||
</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">
|
||||
<label class="mr-3 mb-0 d-none d-md-block">{{ __('label.vihar_search_title')}}</label>
|
||||
{{ Form::text('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','title' => 'Enter Name']) }}
|
||||
</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>
|
||||
<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>Place</th>
|
||||
<th>Year</th>
|
||||
{{-- <th>From</th> --}}
|
||||
<th>Updated By</th>
|
||||
<th>Status</th>
|
||||
<th>Created At</th>
|
||||
<th>Action</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.sant.chaturmas.get-listing', $sant->id) }}",
|
||||
{{--deleteUrl: "{{ route("admin.sant.chaturmas.destroy", $sant->id, ":id") }}",--}}
|
||||
multipleActionUrl: "{{ route('admin.sant.chaturmas.grid.records.action', $sant->id) }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'place',
|
||||
name: 'place',
|
||||
},
|
||||
{
|
||||
data: 'chaturmas_date_id',
|
||||
name: 'chaturmas_date_id',
|
||||
},
|
||||
// {
|
||||
// data: 'from',
|
||||
// name: 'from',
|
||||
// },
|
||||
{
|
||||
data: 'updated_by',
|
||||
name: 'updated_by',
|
||||
},
|
||||
{
|
||||
data: 'status',
|
||||
name: 'status',
|
||||
class: 'ws-nowrap'
|
||||
},
|
||||
{
|
||||
data:'created_at',
|
||||
name:'created_at'
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 5,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,89 @@
|
||||
<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>
|
||||
199
resources/views/backend/sant/sant-vihar/create.blade.php
Normal file
199
resources/views/backend/sant/sant-vihar/create.blade.php
Normal file
@@ -0,0 +1,199 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_vihar_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.sant.vihar.index', $sant->id) }}" class="text-muted">{{ __('breadcrumb.vihar') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.add_vihar') }}
|
||||
</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_vihar_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.sant.vihar.store', $sant->id], 'id' => 'createViharForm', 'files' => true]) }}
|
||||
@include('backend.sant.sant-vihar.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
$('#start_time, #end_time').timepicker().on('changeTime.timepicker', function(e) {
|
||||
let timePicked = $(this).val();
|
||||
// only H:i
|
||||
(timePicked.length < 5) ? $(this).val("0" + timePicked) : '';
|
||||
});
|
||||
|
||||
$.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 end 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 Start date');
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
$("#createViharForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
from: {
|
||||
required: true,
|
||||
},
|
||||
to: {
|
||||
required: true,
|
||||
},
|
||||
start_date: {
|
||||
dateBefore: '#end_date',
|
||||
required: true
|
||||
},
|
||||
// end_date: {
|
||||
// dateAfter: '#start_date',
|
||||
// required: true
|
||||
// },
|
||||
start_time: {
|
||||
required: true
|
||||
}
|
||||
// end_time: {
|
||||
// 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>
|
||||
|
||||
{{-- Google Map script --}}
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAoZv-67UKDVz5Rp3fa3e2xcHunahFGKOc&libraries=places&callback=dummy"></script>
|
||||
<script>
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
function initialize() {
|
||||
var from = document.getElementById('from');
|
||||
var to = document.getElementById('to');
|
||||
var fromautocomplete = new google.maps.places.Autocomplete(from);
|
||||
var toautocomplete = new google.maps.places.Autocomplete(to);
|
||||
|
||||
fromautocomplete.addListener('place_changed', function () {
|
||||
var fromplace = fromautocomplete.getPlace();
|
||||
$('#from_latitude_show').val(fromplace.geometry['location'].lat());
|
||||
$('#from_longitude_show').val(fromplace.geometry['location'].lng());
|
||||
|
||||
$('#from_latitude').val(fromplace.geometry['location'].lat());
|
||||
$('#from_longitude').val(fromplace.geometry['location'].lng());
|
||||
|
||||
$("#fromLatitudeArea").removeAttr('hidden');
|
||||
$("#fromLongtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
|
||||
toautocomplete.addListener('place_changed', function () {
|
||||
var toplace = toautocomplete.getPlace();
|
||||
$('#to_latitude_show').val(toplace.geometry['location'].lat());
|
||||
$('#to_longitude_show').val(toplace.geometry['location'].lng());
|
||||
|
||||
$('#to_latitude').val(toplace.geometry['location'].lat());
|
||||
$('#to_longitude').val(toplace.geometry['location'].lng());
|
||||
|
||||
$("#toLatitudeArea").removeAttr('hidden');
|
||||
$("#toLongtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
205
resources/views/backend/sant/sant-vihar/edit.blade.php
Normal file
205
resources/views/backend/sant/sant-vihar/edit.blade.php
Normal file
@@ -0,0 +1,205 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_vihar_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.sant.vihar.index', $sant->id) }}" class="text-muted">{{ __('breadcrumb.vihar') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.edit_vihar') }}
|
||||
</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_vihar_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($vihar,['route' => ['admin.sant.vihar.update', $sant->id, $vihar->id],'method' => 'PATCH','id' => 'updateViharForm', 'files' => true]) }}
|
||||
@include('backend.sant.sant-vihar.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
function demo1() {
|
||||
|
||||
$('#start_time, #end_time').timepicker().on('changeTime.timepicker', function(e) {
|
||||
let timePicked = $(this).val();
|
||||
// only H:i
|
||||
(timePicked.length < 5) ? $(this).val("0" + timePicked) : '';
|
||||
});
|
||||
|
||||
$.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');
|
||||
|
||||
$("#updateViharForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
from: {
|
||||
required: true,
|
||||
},
|
||||
to: {
|
||||
required: true,
|
||||
},
|
||||
start_date: {
|
||||
dateBefore: '#end_date',
|
||||
required: true
|
||||
},
|
||||
// end_date: {
|
||||
// dateAfter: '#start_date',
|
||||
// required: true
|
||||
// },
|
||||
start_time: {
|
||||
required: true
|
||||
}
|
||||
// end_time: {
|
||||
// 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 );
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
demo1();
|
||||
let start_time = $("#start_time").val();
|
||||
let end_time = $("#end_time").val();
|
||||
// only H:i
|
||||
(start_time.length < 5) ? $("#start_time").val("0" + start_time) : '';
|
||||
(end_time.length < 5) ? $("#end_time").val("0" + end_time) : '';
|
||||
});
|
||||
</script>
|
||||
<script src="{{ asset('/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
|
||||
{{-- Google Map script --}}
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAoZv-67UKDVz5Rp3fa3e2xcHunahFGKOc&libraries=places&callback=dummy"></script>
|
||||
<script>
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
function initialize() {
|
||||
var from = document.getElementById('from');
|
||||
var to = document.getElementById('to');
|
||||
var fromautocomplete = new google.maps.places.Autocomplete(from);
|
||||
var toautocomplete = new google.maps.places.Autocomplete(to);
|
||||
|
||||
fromautocomplete.addListener('place_changed', function () {
|
||||
var fromplace = fromautocomplete.getPlace();
|
||||
$('#from_latitude_show').val(fromplace.geometry['location'].lat());
|
||||
$('#from_longitude_show').val(fromplace.geometry['location'].lng());
|
||||
|
||||
$('#from_latitude').val(fromplace.geometry['location'].lat());
|
||||
$('#from_longitude').val(fromplace.geometry['location'].lng());
|
||||
|
||||
$("#fromLatitudeArea").removeAttr('hidden');
|
||||
$("#fromLongtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
|
||||
toautocomplete.addListener('place_changed', function () {
|
||||
var toplace = toautocomplete.getPlace();
|
||||
$('#to_latitude_show').val(toplace.geometry['location'].lat());
|
||||
$('#to_longitude_show').val(toplace.geometry['location'].lng());
|
||||
|
||||
$('#to_latitude').val(toplace.geometry['location'].lat());
|
||||
$('#to_longitude').val(toplace.geometry['location'].lng());
|
||||
|
||||
$("#toLatitudeArea").removeAttr('hidden');
|
||||
$("#toLongtitudeArea").removeAttr('hidden');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
198
resources/views/backend/sant/sant-vihar/list.blade.php
Normal file
198
resources/views/backend/sant/sant-vihar/list.blade.php
Normal file
@@ -0,0 +1,198 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_vihar_table_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 active">
|
||||
<a href="{{ route('admin.sant.index') }}" class="text-muted">{{ __('breadcrumb.sants') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
{{ __('breadcrumb.vihar') }}
|
||||
</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>{{ $sant->name.'\'s' ?? "" }} {{ __('label.listing_vihar_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.sant.vihar.create', $sant->id) }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_vihar') }}
|
||||
</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">
|
||||
<label class="mr-3 mb-0 d-none d-md-block">{{ __('label.vihar_search_title')}}</label>
|
||||
{{ Form::text('from',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','title' => __('placeholder.vihar_search_title_placeholder')]) }}
|
||||
</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>
|
||||
<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="vihars-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.vihar_listing_heading_3') }}</th>
|
||||
<th>{{ __('label.vihar_listing_heading_4') }}</th>
|
||||
<th>{{ __('label.vihar_listing_heading_5') }}</th>
|
||||
<th>{{ __('label.vihar_listing_heading_7') }}</th>
|
||||
<th>{{ __('label.created_at') }}</th>
|
||||
<th>{{ __('label.vihar_listing_heading_9') }}</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() === '') {
|
||||
$('#kt_reset').hide();
|
||||
} else {
|
||||
$('#kt_reset').show();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '#kt_reset', function () {
|
||||
$('#kt_reset').hide();
|
||||
});
|
||||
|
||||
customDataTableWidget.configuration({
|
||||
element: '#vihars-table',
|
||||
listingUrl: "{{ route('admin.sant.vihar.get-listing', $sant->id) }}",
|
||||
deleteUrl: "{{ route('admin.sant.vihar.get-listing', $sant->id, ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.sant.vihar.grid.records.action', $sant->id) }}",
|
||||
columns: [
|
||||
{
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},
|
||||
{
|
||||
data: 'from',
|
||||
name: 'from',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'to',
|
||||
name: 'to',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'start_date',
|
||||
name: 'start_date',
|
||||
},
|
||||
{
|
||||
data: 'start_time',
|
||||
name: 'start_time',
|
||||
},
|
||||
{
|
||||
data: 'created_at',
|
||||
name: 'created_at',
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
sortable: false,
|
||||
class:'text-right ws-nowrap action-col'
|
||||
}
|
||||
],
|
||||
search: [
|
||||
{
|
||||
key: 'from',
|
||||
type: 'text'
|
||||
},
|
||||
],
|
||||
defaultSortingIndex: 3,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
102
resources/views/backend/sant/sant-vihar/partials/_form.blade.php
Normal file
102
resources/views/backend/sant/sant-vihar/partials/_form.blade.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="form-group row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.vihar_from') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('from',null,['class' => $errors->has('from') ? 'form-control is-invalid' : 'form-control', 'id' => 'from','placeholder' => __('placeholder.vihar_from')]) }}
|
||||
@error('from')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.vihar_to') }} <span class="text-danger">*</span></label>
|
||||
{{ Form::text('to',null,['class' => $errors->has('to') ? 'form-control is-invalid' : 'form-control', 'id' => 'to','placeholder' => __('placeholder.vihar_to')]) }}
|
||||
@error('to')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6 mt-3" id="fromLatitudeArea" hidden>
|
||||
<label>{{ __('label.from_latitude') }}</label>
|
||||
<input type="text" id="from_latitude_show" name="from_latitude_show" class="form-control" disabled>
|
||||
</div>
|
||||
<input type="hidden" id="from_latitude" name="from_latitude" class="form-control">
|
||||
|
||||
<div class="col-md-6 mt-3" id="fromLongtitudeArea" hidden>
|
||||
<label>{{ __('label.from_longitude') }}</label>
|
||||
<input type="text" name="from_longitude_show" id="from_longitude_show" class="form-control" disabled>
|
||||
</div>
|
||||
<input type="hidden" name="from_longitude" id="from_longitude" class="form-control">
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6 mt-3" id="toLatitudeArea" hidden>
|
||||
<label>{{ __('label.to_latitude') }}</label>
|
||||
<input type="text" id="to_latitude_show" name="to_latitude_show" class="form-control" disabled>
|
||||
</div>
|
||||
<input type="hidden" id="to_latitude" name="to_latitude" class="form-control">
|
||||
|
||||
<div class="col-md-6 mt-3" id="toLongtitudeArea" hidden>
|
||||
<label>{{ __('label.to_longitude') }}</label>
|
||||
<input type="text" name="to_longitude_show" id="to_longitude_show" class="form-control" disabled>
|
||||
</div>
|
||||
<input type="hidden" name="to_longitude" id="to_longitude" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.vihar_start_date') }} <span class="text-danger">*</span></label>
|
||||
<div class="input-group date">
|
||||
{{ Form::text('start_date',null,['id' => 'start_date', 'autocomplete' => 'off','class' => $errors->has('start_date') ? 'form-control date-picker is-invalid' : 'form-control date-picker','placeholder' => __('placeholder.vihar_start_date')]) }}
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">
|
||||
<i class="fas fa-calendar-alt"></i>
|
||||
</span>
|
||||
</div>
|
||||
@error('start_date')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.vihar_start_time') }} <span class="text-danger">*</span></label>
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_time',null,['id' => 'start_time', 'autocomplete' => 'off', 'readonly' => 'readonly','class' => $errors->has('start_time') ? 'form-control time-vihar is-invalid' : 'form-control','placeholder' => __('placeholder.vihar_start_time')]) }}
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">
|
||||
<i class="fas fa-clock"></i>
|
||||
</span>
|
||||
</div>
|
||||
@error('start_time')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
</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', $vihar->is_approved ?? null, isset($vihar->is_approved) && $vihar->is_approved == 1 ? 'checked' : 'checked') }}
|
||||
<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.vihar.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.sant.vihar.index', $sant->id) }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
157
resources/views/backend/user/create.blade.php
Normal file
157
resources/views/backend/user/create.blade.php
Normal file
@@ -0,0 +1,157 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.create_user_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">
|
||||
<a href="{{ route('admin.user.index') }}" class="text-muted">{{ __('breadcrumb.users') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="{{ route('admin.user.create') }}" class="text-muted">{{ __('breadcrumb.create_user') }}</a>
|
||||
</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_user_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.user.store','id' => 'createUserForm', 'files' => true]) }}
|
||||
@include('backend.user.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#createUserForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
},
|
||||
email: {
|
||||
required: true,
|
||||
},
|
||||
mobile: {
|
||||
required: true,
|
||||
},
|
||||
avatar: {
|
||||
required: true,
|
||||
extension: "jpg|jpeg|png",
|
||||
},
|
||||
gender: {
|
||||
required: true,
|
||||
},
|
||||
dharma_id: {
|
||||
required: true,
|
||||
},
|
||||
jati_id: {
|
||||
required: true,
|
||||
},
|
||||
profession: {
|
||||
required: true,
|
||||
},
|
||||
profession_speciality: {
|
||||
required: true,
|
||||
},
|
||||
/*native_place: {
|
||||
required: true,
|
||||
},
|
||||
current_location: {
|
||||
required: true,
|
||||
}*/
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var maxFileLimit = 5 * 1000000;
|
||||
$(document).on('change', '.avatar-image', function () {
|
||||
viewAvatarImage(this);
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
});
|
||||
function viewAvatarImage(input) {
|
||||
if (input.files && input.files[0]) {
|
||||
var file = input.files[0];
|
||||
if (file.size < maxFileLimit) {
|
||||
var fileType = file["type"];
|
||||
var validImageTypes = ["image/jpg", "image/jpeg", "image/png"];
|
||||
if ($.inArray(fileType, validImageTypes) > 0) {
|
||||
// invalid file type code goes here.
|
||||
var reader = new FileReader();
|
||||
reader.onload = function (e) {
|
||||
$('.avatar-image-preview').attr('src', e.target.result);
|
||||
$('.avatar-image-preview-div').css('display', 'flex');
|
||||
}
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.image_type") }}');
|
||||
}
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.max_image_size") }}');
|
||||
}
|
||||
}
|
||||
}
|
||||
$(document).on('click', '.avatar-image-remove-button', function () {
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
$('.avatar-image').val('');
|
||||
$('.avatar-image-preview-div').css('display', 'none');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
162
resources/views/backend/user/edit.blade.php
Normal file
162
resources/views/backend/user/edit.blade.php
Normal file
@@ -0,0 +1,162 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.update_user_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">
|
||||
<a href="{{ route('admin.user.index') }}" class="text-muted">{{ __('breadcrumb.users') }}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="javascript:void(0);" class="text-muted">{{ __('breadcrumb.update_user') }}</a>
|
||||
</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_user_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($user,['route' => ['admin.user.update', $user->id],'method' => 'PATCH','id' => 'updateUserForm', 'files' => true]) }}
|
||||
@include('backend.user.partials._form')
|
||||
{{ Form::close() }}
|
||||
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('after-scripts')
|
||||
@component('backend.layouts.components.validation')@endcomponent
|
||||
<script>
|
||||
|
||||
$('.datepicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#updateUserForm").validate({
|
||||
errorClass: 'is-invalid',
|
||||
normalizer: function(value) {
|
||||
return $.trim(value);
|
||||
},
|
||||
rules: {
|
||||
name: {
|
||||
required: true,
|
||||
},
|
||||
email: {
|
||||
required: true,
|
||||
},
|
||||
mobile: {
|
||||
required: true,
|
||||
},
|
||||
avatar: {
|
||||
required: true,
|
||||
extension: "jpg|jpeg|png",
|
||||
},
|
||||
gender: {
|
||||
required: true,
|
||||
},
|
||||
dharma_id: {
|
||||
required: true,
|
||||
},
|
||||
jati_id: {
|
||||
required: true,
|
||||
},
|
||||
profession: {
|
||||
required: true,
|
||||
},
|
||||
speciality_of_profession: {
|
||||
required: true,
|
||||
},
|
||||
native_place: {
|
||||
required: true,
|
||||
},
|
||||
current_location: {
|
||||
required: true,
|
||||
},
|
||||
status: {
|
||||
required:true,
|
||||
},
|
||||
onfocusout: function(element) {
|
||||
// "eager" validation
|
||||
// this.element(element);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var maxFileLimit = 5 * 1000000;
|
||||
$(document).on('change', '.avatar-image', function () {
|
||||
viewAvatarImage(this);
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
});
|
||||
function viewAvatarImage(input) {
|
||||
if (input.files && input.files[0]) {
|
||||
var file = input.files[0];
|
||||
if (file.size < maxFileLimit) {
|
||||
var fileType = file["type"];
|
||||
var validImageTypes = ["image/jpg", "image/jpeg", "image/png"];
|
||||
if ($.inArray(fileType, validImageTypes) > 0) {
|
||||
// invalid file type code goes here.
|
||||
var reader = new FileReader();
|
||||
reader.onload = function (e) {
|
||||
$('.avatar-image-preview').attr('src', e.target.result);
|
||||
$('.avatar-image-preview-div').css('display', 'flex');
|
||||
}
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.image_type") }}');
|
||||
}
|
||||
} else {
|
||||
$('.avatar-image').val('');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
toastr.error('{{ __("label.max_image_size") }}');
|
||||
}
|
||||
}
|
||||
}
|
||||
$(document).on('click', '.avatar-image-remove-button', function () {
|
||||
$('.is_remove_avatar_image').val(1);
|
||||
$('.avatar-image').val('');
|
||||
$('.avatar-image-preview-div').css('display', 'none');
|
||||
$('#avatar-custom-file-label').text('{{ __("label.choose_image") }}');
|
||||
});
|
||||
|
||||
</script>
|
||||
<script src="{{ asset('/js/pages/crud/forms/widgets/bootstrap-switch.js?v=7.2.8') }}"></script>
|
||||
@endsection
|
||||
222
resources/views/backend/user/list.blade.php
Normal file
222
resources/views/backend/user/list.blade.php
Normal file
@@ -0,0 +1,222 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('title',__('label.listing_user_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.user.index') }}"
|
||||
class="text-muted">{{ __('breadcrumb.users') }}</a>
|
||||
</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_user_table_title') }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-toolbar">
|
||||
<!--begin::Button-->
|
||||
<a href="{{ route('admin.user.create') }}" class="btn btn-primary font-weight-bolder">
|
||||
<i class="fas fa-plus fa-sm"></i> {{ __('buttons.create_user') }}
|
||||
</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">
|
||||
<label class="mr-3 mb-0 d-none d-md-block">{{ __('label.user_search_title')}}</label>
|
||||
{{ Form::text('name',null,['class' => 'form-control selectpicker datatable-input change-action','id' => 'title','title' => __('placeholder.user_search_title_placeholder')]) }}
|
||||
</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.user_listing_heading_2') }}</th>
|
||||
<th>{{ __('label.user_listing_heading_3') }}</th>
|
||||
{{--<th>{{ __('label.user_listing_heading_4') }}</th> --}}
|
||||
<th>{{ __('label.created_at') }}</th>
|
||||
<th>{{ __('label.user_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.user.get-listing') }}",
|
||||
deleteUrl: "{{ route("admin.user.destroy", ":id") }}",
|
||||
multipleActionUrl: "{{ route('admin.user.grid.records.action') }}",
|
||||
columns: [
|
||||
/* {
|
||||
data: 'checkbox_action',
|
||||
name: 'checkbox_action',
|
||||
sortable: false
|
||||
},*/
|
||||
{
|
||||
data: 'name',
|
||||
name: 'name',
|
||||
searchable: true
|
||||
},
|
||||
{
|
||||
data: 'email',
|
||||
name: 'email'
|
||||
},
|
||||
/* {
|
||||
data: 'status',
|
||||
name: 'status',
|
||||
},*/
|
||||
{
|
||||
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: 'name',
|
||||
type: 'text'
|
||||
}
|
||||
],
|
||||
defaultSortingIndex: 1,
|
||||
defaultSortingOrder: 'desc'
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
140
resources/views/backend/user/partials/_form.blade.php
Normal file
140
resources/views/backend/user/partials/_form.blade.php
Normal file
@@ -0,0 +1,140 @@
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_full_name') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::text('name',null,['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control','placeholder' =>__('placeholder.user_full_name')]) }}
|
||||
@error('name')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_email') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::text('email',null,['class' => $errors->has('email') ? 'form-control is-invalid' : 'form-control','placeholder' =>__('placeholder.email')]) }}
|
||||
@error('email')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_mobile') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::text('mobile',null,['class' => $errors->has('mobile') ? 'form-control is-invalid' : 'form-control','placeholder' =>__('placeholder.user_mobile')]) }}
|
||||
@error('mobile')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_gender') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::select('gender',['1'=>'Male','2'=>'Female'],(isset($userDetail->gender) && !empty($userDetail->gender)) ? $userDetail->gender : null,['class' => $errors->has('gender') ? 'form-control selectpicker is-invalid gender' : 'form-control selectpicker','title' => __('placeholder.user_gender'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('gender')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_dharma') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::select('dharma_id',$dharmaList,(isset($user->dharma_id) && !empty($user->dharma_id)) ? $user->dharma_id : null,['class' => $errors->has('dharma_id') ? 'form-control selectpicker is-invalid dharma_id' : 'form-control selectpicker','title' => __('placeholder.user_dharma'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('dharma_id')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_jati') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::select('jati_id',$jatiList,(isset($userDetail->jati_id) && !empty($userDetail->jati_id)) ? $userDetail->jati_id : null,['class' => $errors->has('jati_id') ? 'form-control selectpicker is-invalid jati_id' : 'form-control selectpicker','title' => __('placeholder.user_jati'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('jati_id')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_profession') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::select('profession',['0'=>'Profession 1','1'=>'Profession 2','2'=>'Profession 3'],(isset($userDetail->profession) && !empty($userDetail->profession)) ? $userDetail->profession : null,['class' => $errors->has('profession') ? 'form-control selectpicker is-invalid profession' : 'form-control selectpicker','title' =>__('placeholder.user_profession'),'data-live-search' => 'true','data-allow-clear' => 'true']) }}
|
||||
@error('profession')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_speciality_of_profession') }}<span class="text-danger">*</span></label>
|
||||
{{ Form::text('profession_speciality',null,['class' => $errors->has('rofession_speciality') ? 'form-control is-invalid' : 'form-control','placeholder' => __('placeholder.user_speciality_of_profession')]) }}
|
||||
@error('profession_speciality')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{--<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>Native Place<span class="text-danger">*</span></label>
|
||||
{{ Form::text('native_place',null,['class' => $errors->has('native_place') ? 'form-control is-invalid' : 'form-control','placeholder' => 'Enter Native place']) }}
|
||||
@error('native_place')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Current Location<span class="text-danger">*</span></label>
|
||||
{{ Form::text('current_location',null,['class' => $errors->has('current_location') ? 'form-control is-invalid' : 'form-control','placeholder' => 'Enter Current Location']) }}
|
||||
@error('current_location')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div> --}}
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-6">
|
||||
<label>{{ __('label.user_avatar') }}<span class="text-danger">*</span></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
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row avatar-image-preview-div"
|
||||
@if(isset($user->avatar) && !empty($user->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($user) && !empty($user->avatar)) ? $user->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">
|
||||
<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($user->avatar) && !empty($user->avatar) ? 0 : 1 }}">
|
||||
</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.user.edit')
|
||||
{{ __('buttons.update') }}
|
||||
@else
|
||||
{{ __('buttons.save') }}
|
||||
@endif
|
||||
</button>
|
||||
<a href="{{ route('admin.user.index') }}" class="btn btn-secondary">{{ __('buttons.cancel') }}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user