first commit
This commit is contained in:
141
resources/views/crud/generated/students/create.blade.php
Normal file
141
resources/views/crud/generated/students/create.blade.php
Normal file
@@ -0,0 +1,141 @@
|
||||
@extends('backend.template')
|
||||
@section('content')
|
||||
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
|
||||
<h4 class="mb-sm-0">Add Student</h4>
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
|
||||
<li class="breadcrumb-item active">Add Student</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<form action="{{route('students.store')}}" id="storeCustomForm" method="POST">
|
||||
@csrf
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6 ">{{createCustomSelect('tbl_campaigns', 'title', 'campaign_id', '', 'Campaigns Title','campaigns_id', 'form-control select2','status<>-1')}}</div>
|
||||
<div class="col-lg-2 col-md-6">{{createCustomSelect('tbl_countries', 'title', 'country_id', '', 'Country','countries_id', 'form-control select2','status<>-1')}}</div>
|
||||
<div class="col-lg-2 col-md-4">{{createCustomSelect('tbl_sources', 'title', 'source_id', '', 'Source','sources_id', 'form-control select2','status<>-1')}}</div>
|
||||
<div class="col-lg-2 col-md-4">{{createCustomSelect('tbl_leadcategories', 'title', 'leadcategory_id', '', 'Lead Category','leadcategories_id', 'form-control select2','status<>-1')}}</div>
|
||||
<div class="col-lg-2 col-md-4">{{createCustomSelect('tbl_agents', 'title', 'agent_id', '', 'Agent Name','agents_id', 'form-control select2','status<>-1')}}</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<ul class="nav nav-tabs-custom rounded card-header-tabs border-bottom-0" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" data-bs-toggle="tab" href="#personalDetails" role="tab">
|
||||
<i class="fas fa-home"></i> Personal Details
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-bs-toggle="tab" href="#qualification" role="tab">
|
||||
<i class="far fa-user"></i> Qualification
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-bs-toggle="tab" href="#pc" role="tab">
|
||||
<i class="far fa-envelope"></i> Preparation Classes
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-bs-toggle="tab" href="#others" role="tab">
|
||||
<i class="far fa-envelope"></i> Others
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card-body p-4">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="personalDetails" role="tabpanel">
|
||||
<form action="javascript:void(0);">
|
||||
<div class="row">
|
||||
<div class="col-lg-12"><div class="mb-3">{{createText("name","name","Name")}}</div></div>
|
||||
<div class="col-lg-6"><div class="mb-3">{{createText("email","email","Email")}}</div></div>
|
||||
<div class="col-lg-6"><div class="mb-3">{{createText("address","address","Address")}}</div></div>
|
||||
<div class="col-lg-6"><div class="mb-3">{{createText("phone","phone","Phone")}}</div></div>
|
||||
<div class="col-lg-6"><div class="mb-3">{{createText("mobile","mobile","Mobile")}}</div></div>
|
||||
|
||||
|
||||
</div>
|
||||
<!--end row-->
|
||||
</form>
|
||||
</div>
|
||||
<!--end tab-pane-->
|
||||
<div class="tab-pane" id="qualification" role="tabpanel">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-3">{{createText("see_year","see_year","SEE Year")}}</div>
|
||||
<div class="col-lg-3">{{createText("see_grade","see_grade","SEE Grade")}}</div>
|
||||
<div class="col-lg-3">{{createText("see_stream","see_stream","SEE Stream")}}</div>
|
||||
<div class="col-lg-3">{{createText("see_school","see_school","SEE School")}}</div>
|
||||
<div class="col-lg-3">{{createText("plus2_year","plus2_year","Plus2 Year")}}</div>
|
||||
<div class="col-lg-3">{{createText("plus2_grade","plus2_grade","Plus2 Grade")}}</div>
|
||||
<div class="col-lg-3">{{createText("plus2_stream","plus2_stream","Plus2 Stream")}}</div>
|
||||
<div class="col-lg-3">{{createText("plus2_college","plus2_college","Plus2 College")}}</div>
|
||||
<div class="col-lg-3">{{createText("bachelors_year","bachelors_year","Bachelors Year")}}</div>
|
||||
<div class="col-lg-3">{{createText("bachelors_grade","bachelors_grade","Bachelors Grade")}}</div>
|
||||
<div class="col-lg-3">{{createText("bachelors_stream","bachelors_stream","Bachelors Stream")}}</div>
|
||||
<div class="col-lg-3">{{createText("bachelors_college","bachelors_college","Bachelors College")}}</div>
|
||||
<div class="col-lg-3">{{createText("highest_qualification","highest_qualification","Highest Qualification")}}</div>
|
||||
<div class="col-lg-3">{{createText("highest_grade","highest_grade","Highest Grade")}}</div>
|
||||
<div class="col-lg-3">{{createText("highest_stream","highest_stream","Highest Stream")}}</div>
|
||||
<div class="col-lg-3">{{createText("highest_college","highest_college","Highest College")}}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--end tab-pane-->
|
||||
<div class="tab-pane" id="pc" role="tabpanel">
|
||||
<div class="row">
|
||||
<div class="col-lg-3">{{createText("preparation_class","preparation_class","Preparation Class")}}</div>
|
||||
<div class="col-lg-3">{{createText("preparation_score","preparation_score","Preparation Score")}}</div>
|
||||
<div class="col-lg-3">{{createText("preparation_bandscore","preparation_bandscore","Preparation Bandscore")}}</div>
|
||||
<div class="col-lg-3">{{createText("preparation_date","preparation_date","Preparation Date")}}</div>
|
||||
<div class="col-lg-3">{{createText("preffered_location","preffered_location","Preffered Location")}}</div>
|
||||
<div class="col-lg-3">{{createText("intrested_for_country","intrested_for_country","Intrested For Country")}}</div>
|
||||
<div class="col-lg-3">{{createText("intrested_course","intrested_course","Intrested Course")}}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--end tab-pane-->
|
||||
<div class="tab-pane" id="others" role="tabpanel">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">{{createText("user_agent","user_agent","User Agent")}}</div>
|
||||
<div class="col-lg-6">{{createText("tags","tags","Tags")}}</div>
|
||||
<div class="col-lg-6">{{createText("coupen_code","coupen_code","Coupen Code")}}</div>
|
||||
<div class="col-lg-12 pb-2">{{createPlainTextArea("remarks","remarks ","Remarks")}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--end tab-pane-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<?php createButton("btn-primary btn-store","","Submit"); ?>
|
||||
<?php createButton("btn-danger btn-cancel","","Cancel",route('students.index')); ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
@endsection
|
47
resources/views/crud/generated/students/edit.blade.php
Normal file
47
resources/views/crud/generated/students/edit.blade.php
Normal file
@@ -0,0 +1,47 @@
|
||||
@extends('backend.template')
|
||||
@section('content')
|
||||
<div class='card'>
|
||||
<div class='card-header d-flex justify-content-between align-items-center'>
|
||||
<h2 class="">{{ label('Edit Students') }}</h2>
|
||||
<?php createButton("btn-primary btn-cancel","","Cancel",route('students.index')); ?>
|
||||
|
||||
</div>
|
||||
<div class='card-body'>
|
||||
<form action="{{route('students.update',[$data->student_id])}}" id="updateCustomForm" method="POST" >
|
||||
@csrf <input type=hidden name='student_id' value='{{$data->student_id}}'/>
|
||||
<div class="row"><div class="col-lg-6">{{createCustomSelect('tbl_campaigns', 'title', 'campaign_id', $data->campaigns_id, 'Campaigns Id','campaigns_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createCustomSelect('tbl_sources', 'title', 'source_id', $data->sources_id, 'Sources Id','sources_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createCustomSelect('tbl_leadcategories', 'title', 'leadcategory_id', $data->leadcategories_id, 'Leadcategories Id','leadcategories_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createCustomSelect('tbl_agents', 'title', 'agent_id', $data->agents_id, 'Agents Id','agents_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createCustomSelect('tbl_countries', 'title', 'country_id', $data->countries_id, 'Countries Id','countries_id', 'form-control select2','status<>-1')}}</div><div class="col-lg-6">{{createText("name","name","Name",'',$data->name)}}
|
||||
</div><div class="col-lg-6">{{createText("email","email","Email",'',$data->email)}}
|
||||
</div><div class="col-lg-6">{{createText("phone","phone","Phone",'',$data->phone)}}
|
||||
</div><div class="col-lg-6">{{createText("mobile","mobile","Mobile",'',$data->mobile)}}
|
||||
</div><div class="col-lg-6">{{createText("address","address","Address",'',$data->address)}}
|
||||
</div><div class="col-lg-6">{{createText("see_year","see_year","See Year",'',$data->see_year)}}
|
||||
</div><div class="col-lg-6">{{createText("see_grade","see_grade","See Grade",'',$data->see_grade)}}
|
||||
</div><div class="col-lg-6">{{createText("see_stream","see_stream","See Stream",'',$data->see_stream)}}
|
||||
</div><div class="col-lg-6">{{createText("see_school","see_school","See School",'',$data->see_school)}}
|
||||
</div><div class="col-lg-6">{{createText("plus2_year","plus2_year","Plus2 Year",'',$data->plus2_year)}}
|
||||
</div><div class="col-lg-6">{{createText("plus2_grade","plus2_grade","Plus2 Grade",'',$data->plus2_grade)}}
|
||||
</div><div class="col-lg-6">{{createText("plus2_stream","plus2_stream","Plus2 Stream",'',$data->plus2_stream)}}
|
||||
</div><div class="col-lg-6">{{createText("plus2_college","plus2_college","Plus2 College",'',$data->plus2_college)}}
|
||||
</div><div class="col-lg-6">{{createText("bachelors_year","bachelors_year","Bachelors Year",'',$data->bachelors_year)}}
|
||||
</div><div class="col-lg-6">{{createText("bachelors_grade","bachelors_grade","Bachelors Grade",'',$data->bachelors_grade)}}
|
||||
</div><div class="col-lg-6">{{createText("bachelors_stream","bachelors_stream","Bachelors Stream",'',$data->bachelors_stream)}}
|
||||
</div><div class="col-lg-6">{{createText("bachelors_college","bachelors_college","Bachelors College",'',$data->bachelors_college)}}
|
||||
</div><div class="col-lg-6">{{createText("highest_qualification","highest_qualification","Highest Qualification",'',$data->highest_qualification)}}
|
||||
</div><div class="col-lg-6">{{createText("highest_grade","highest_grade","Highest Grade",'',$data->highest_grade)}}
|
||||
</div><div class="col-lg-6">{{createText("highest_stream","highest_stream","Highest Stream",'',$data->highest_stream)}}
|
||||
</div><div class="col-lg-6">{{createText("highest_college","highest_college","Highest College",'',$data->highest_college)}}
|
||||
</div><div class="col-lg-6">{{createText("preparation_class","preparation_class","Preparation Class",'',$data->preparation_class)}}
|
||||
</div><div class="col-lg-6">{{createText("preparation_score","preparation_score","Preparation Score",'',$data->preparation_score)}}
|
||||
</div><div class="col-lg-6">{{createText("preparation_bandscore","preparation_bandscore","Preparation Bandscore",'',$data->preparation_bandscore)}}
|
||||
</div><div class="col-lg-6">{{createText("preparation_date","preparation_date","Preparation Date",'',$data->preparation_date)}}
|
||||
</div><div class="col-lg-6">{{createText("preffered_location","preffered_location","Preffered Location",'',$data->preffered_location)}}
|
||||
</div><div class="col-lg-6">{{createText("intrested_for_country","intrested_for_country","Intrested For Country",'',$data->intrested_for_country)}}
|
||||
</div><div class="col-lg-6">{{createText("intrested_course","intrested_course","Intrested Course",'',$data->intrested_course)}}
|
||||
</div><div class="col-lg-6">{{createText("user_agent","user_agent","User Agent",'',$data->user_agent)}}
|
||||
</div><div class="col-lg-6">{{createText("tags","tags","Tags",'',$data->tags)}}
|
||||
</div><div class="col-lg-6">{{createText("coupen_code","coupen_code","Coupen Code",'',$data->coupen_code)}}
|
||||
</div><div class="col-lg-12 pb-2">{{createPlainTextArea("remarks",'',"Remarks",$data->remarks)}}
|
||||
</div> <div class="col-md-12"><?php createButton("btn-primary btn-update","","Submit"); ?>
|
||||
<?php createButton("btn-primary btn-cancel","","Cancel",route('students.index')); ?>
|
||||
</div> </form></div></div>
|
||||
@endsection
|
234
resources/views/crud/generated/students/index.blade.php
Normal file
234
resources/views/crud/generated/students/index.blade.php
Normal file
@@ -0,0 +1,234 @@
|
||||
@extends('backend.template')
|
||||
@section('content')
|
||||
<div class="card">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<h2>{{ label("Students List") }}</h2>
|
||||
<a href="{{ route('students.create') }}" class="btn btn-primary"><span>{{label("Create New")}}</span></a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table dataTable" id="tbl_students" data-url="{{ route('students.sort') }}">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="tb-col"><span class="overline-title">{{label("SNo.")}}</span></th>
|
||||
<th class="tb-col"><span class="overline-title">{{ label("Name") }}</span></th>
|
||||
<th class="tb-col"><span class="overline-title">{{ label("Email") }}</span></th>
|
||||
<th class="tb-col"><span class="overline-title">{{ label("Mobile") }}</span></th>
|
||||
<th class="tb-col"><span class="overline-title">{{ label("Intrested for Country") }}</span></th>
|
||||
<th class="tb-col"><span class="overline-title">{{ label("Intrested Course") }}</span></th>
|
||||
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label("Action") }}</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
$i = 1;
|
||||
@endphp
|
||||
@foreach ($data as $item)
|
||||
|
||||
<tr data-id="{{$item->student_id}}" data-display_order="{{$item->display_order}}" class="draggable-row <?php echo ($item->status == 0) ? "bg-light bg-danger" : ""; ?>">
|
||||
<td class="tb-col">{{ $i++ }}</td>
|
||||
<td class="tb-col">{{ $item->name }}</td>
|
||||
<td class="tb-col">{{ $item->email }}</td>
|
||||
<td class="tb-col">{{ $item->mobile }}</td>
|
||||
<td class="tb-col"> {!! getFieldData("tbl_countries", "title", "country_id", $item->countries_id) !!}</td>
|
||||
<td class="tb-col">{{ $item->intrested_course }}</td>
|
||||
<td class="tb-col">
|
||||
<div class="dropdown d-inline-block">
|
||||
<button class="btn btn-soft-secondary btn-sm dropdown" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="ri-more-fill align-middle"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li><a href="{{route('students.show',[$item->student_id])}}" class="dropdown-item"><i class="ri-eye-fill align-bottom me-2 text-muted"></i> {{label("View")}}</a></li>
|
||||
<li><a href="{{route('students.edit',[$item->student_id])}}" class="dropdown-item edit-item-btn"><i class="ri-pencil-fill align-bottom me-2 text-muted"></i> {{label("Edit")}}</a></li>
|
||||
<li>
|
||||
<a href="{{route('students.toggle',[$item->student_id])}}" class="dropdown-item toggle-item-btn" onclick="confirmToggle(this.href)">
|
||||
<i class="ri-article-fill align-bottom me-2 text-muted"></i> {{ ($item->status==1)?label('Unpublish'):label('Publish') }}
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{route('students.destroy',[$item->student_id])}}" class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)">
|
||||
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i> {{ label('Delete') }}
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push("css")
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/rowreorder/1.4.0/css/rowReorder.dataTables.min.css">
|
||||
@endpush
|
||||
@push("js")
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/rowreorder/1.4.0/js/dataTables.rowReorder.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function(e) {
|
||||
$('.change-alias-badge').on('click', function() {
|
||||
var aliasWrapper = $(this).prev('.alias-wrapper');
|
||||
var aliasSpan = aliasWrapper.find('.alias');
|
||||
var aliasInput = aliasWrapper.find('.alias-input');
|
||||
var isEditing = $(this).hasClass('editing');
|
||||
aliasInput.toggleClass("d-none");
|
||||
if (isEditing) {
|
||||
// Update alias text and switch to non-editing state
|
||||
var newAlias = aliasInput.val();
|
||||
aliasSpan.text(newAlias);
|
||||
aliasSpan.show();
|
||||
aliasInput.hide();
|
||||
$(this).removeClass('editing').text('Change Alias');
|
||||
var articleId = $(aliasWrapper).data('id');
|
||||
var ajaxUrl = "{{ route('students.updatealias') }}";
|
||||
var data = {
|
||||
articleId: articleId,
|
||||
newAlias: newAlias
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
url: ajaxUrl,
|
||||
type: 'POST',
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
data: data,
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error(error);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// Switch to editing state
|
||||
aliasSpan.hide();
|
||||
aliasInput.show().focus();
|
||||
$(this).addClass('editing').text('Save Alias');
|
||||
}
|
||||
});
|
||||
var mytable = $(".dataTable").DataTable({
|
||||
ordering: true,
|
||||
rowReorder: {
|
||||
//selector: 'tr'
|
||||
},
|
||||
});
|
||||
|
||||
var isRowReorderComplete = false;
|
||||
|
||||
mytable.on('row-reorder', function(e, diff, edit) {
|
||||
isRowReorderComplete = true;
|
||||
});
|
||||
|
||||
mytable.on('draw', function() {
|
||||
if (isRowReorderComplete) {
|
||||
var url = mytable.table().node().getAttribute('data-url');
|
||||
var ids = mytable.rows().nodes().map(function(node) {
|
||||
return $(node).data('id');
|
||||
}).toArray();
|
||||
|
||||
console.log(ids);
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: "POST",
|
||||
headers: {
|
||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
data: {
|
||||
id_order: ids
|
||||
},
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error(error);
|
||||
}
|
||||
});
|
||||
isRowReorderComplete = false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function confirmDelete(url) {
|
||||
event.preventDefault();
|
||||
Swal.fire({
|
||||
title: 'Are you sure?',
|
||||
text: 'You will not be able to recover this item!',
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Delete',
|
||||
cancelButtonText: 'Cancel',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'DELETE',
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
success: function(response) {
|
||||
Swal.fire('Deleted!', 'The item has been deleted.', 'success');
|
||||
location.reload();
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
Swal.fire('Error!', 'An error occurred while deleting the item.', 'error');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function confirmToggle(url) {
|
||||
event.preventDefault();
|
||||
Swal.fire({
|
||||
title: 'Are you sure?',
|
||||
text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!',
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Proceed',
|
||||
cancelButtonText: 'Cancel',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'GET',
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
success: function(response) {
|
||||
Swal.fire('Updated!', 'Publishing Status has been updated.', 'success');
|
||||
location.reload();
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
Swal.fire('Error!', 'An error occurred.', 'error');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@endpush
|
29
resources/views/crud/generated/students/show.blade.php
Normal file
29
resources/views/crud/generated/students/show.blade.php
Normal file
@@ -0,0 +1,29 @@
|
||||
@extends('backend.template')
|
||||
@section('content')
|
||||
<div class='card'>
|
||||
<div class='card-header d-flex justify-content-between align-items-center'>
|
||||
<h2><?php echo label('View Details'); ?></h2>
|
||||
<?php createButton("btn-primary btn-cancel","","Back to List",route('students.index')); ?>
|
||||
|
||||
</div>
|
||||
<div class='card-body'>
|
||||
|
||||
|
||||
|
||||
<p><b>Campaigns Id : </b> <span>{{$data->campaigns_id}}</span></p><p><b>Sources Id : </b> <span>{{$data->sources_id}}</span></p><p><b>Leadcategories Id : </b> <span>{{$data->leadcategories_id}}</span></p><p><b>Agents Id : </b> <span>{{$data->agents_id}}</span></p><p><b>Countries Id : </b> <span>{{$data->countries_id}}</span></p><p><b>Name : </b> <span>{{$data->name}}</span></p><p><b>Email : </b> <span>{{$data->email}}</span></p><p><b>Phone : </b> <span>{{$data->phone}}</span></p><p><b>Mobile : </b> <span>{{$data->mobile}}</span></p><p><b>Address : </b> <span>{{$data->address}}</span></p><p><b>See Year : </b> <span>{{$data->see_year}}</span></p><p><b>See Grade : </b> <span>{{$data->see_grade}}</span></p><p><b>See Stream : </b> <span>{{$data->see_stream}}</span></p><p><b>See School : </b> <span>{{$data->see_school}}</span></p><p><b>Plus2 Year : </b> <span>{{$data->plus2_year}}</span></p><p><b>Plus2 Grade : </b> <span>{{$data->plus2_grade}}</span></p><p><b>Plus2 Stream : </b> <span>{{$data->plus2_stream}}</span></p><p><b>Plus2 College : </b> <span>{{$data->plus2_college}}</span></p><p><b>Bachelors Year : </b> <span>{{$data->bachelors_year}}</span></p><p><b>Bachelors Grade : </b> <span>{{$data->bachelors_grade}}</span></p><p><b>Bachelors Stream : </b> <span>{{$data->bachelors_stream}}</span></p><p><b>Bachelors College : </b> <span>{{$data->bachelors_college}}</span></p><p><b>Highest Qualification : </b> <span>{{$data->highest_qualification}}</span></p><p><b>Highest Grade : </b> <span>{{$data->highest_grade}}</span></p><p><b>Highest Stream : </b> <span>{{$data->highest_stream}}</span></p><p><b>Highest College : </b> <span>{{$data->highest_college}}</span></p><p><b>Preparation Class : </b> <span>{{$data->preparation_class}}</span></p><p><b>Preparation Score : </b> <span>{{$data->preparation_score}}</span></p><p><b>Preparation Bandscore : </b> <span>{{$data->preparation_bandscore}}</span></p><p><b>Preparation Date : </b> <span>{{$data->preparation_date}}</span></p><p><b>Preffered Location : </b> <span>{{$data->preffered_location}}</span></p><p><b>Intrested For Country : </b> <span>{{$data->intrested_for_country}}</span></p><p><b>Intrested Course : </b> <span>{{$data->intrested_course}}</span></p><p><b>User Agent : </b> <span>{{$data->user_agent}}</span></p><p><b>Tags : </b> <span>{{$data->tags}}</span></p><p><b>Coupen Code : </b> <span>{{$data->coupen_code}}</span></p><p><b>Display Order : </b> <span>{{$data->display_order}}</span></p><p><b>Status : </b> <span
|
||||
class="{{$data->status == 1 ? 'text-success' : 'text-danger'}}">{{$data->status == 1 ? 'Active' : 'Inactive'}}</span></p><p><b>Remarks : </b> <span>{{$data->remarks}}</span></p><p><b>Createdby : </b> <span>{{$data->createdby}}</span></p><p><b>Updatedby : </b> <span>{{$data->updatedby}}</span></p><div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<p><b>Created On :</b> <span>{{$data->created_at}}</span></p>
|
||||
<p><b>Created By :</b> <span>{{$data->createdBy}}</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><b>Updated On :</b> <span>{{$data->updated_at}}</span></p>
|
||||
<p><b>Updated By :</b> <span>{{$data->updatedBy}}</span></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endSection
|
Reference in New Issue
Block a user