172 lines
9.7 KiB
PHP
172 lines
9.7 KiB
PHP
@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">Welcome to {{env("APP_NAME")}}</h4>
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboard</a></li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
<div class="row project-wrapper">
|
|
<div class="col-xxl-12">
|
|
<div class="row">
|
|
<div class="col-xl-4">
|
|
<div class="card card-animate">
|
|
<div class="card-body">
|
|
<div class="d-flex align-items-center">
|
|
<div class="avatar-sm flex-shrink-0">
|
|
<span class="avatar-title bg-soft-primary text-primary rounded-2 fs-2">
|
|
<i data-feather="users" class="text-primary"></i>
|
|
</span>
|
|
</div>
|
|
<div class="flex-grow-1 overflow-hidden ms-3">
|
|
<p class="text-uppercase fw-medium text-muted text-truncate mb-3">Total Leads</p>
|
|
<div class="d-flex align-items-center mb-3">
|
|
<h4 class="fs-4 flex-grow-1 mb-0"><span class="counter-value" data-target="{{LMS::leadsCount()}}">0</span></h4>
|
|
<a href="{{route('registrations.index')}}">View All</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- end card body -->
|
|
</div>
|
|
</div><!-- end col -->
|
|
<div class="col-xl-4">
|
|
<div class="card card-animate">
|
|
<div class="card-body">
|
|
<div class="d-flex align-items-center">
|
|
<div class="avatar-sm flex-shrink-0">
|
|
<span class="avatar-title bg-soft-warning text-warning rounded-2 fs-2">
|
|
<i data-feather="edit" class="text-warning"></i>
|
|
</span>
|
|
</div>
|
|
<div class="flex-grow-1 ms-3">
|
|
<p class="text-uppercase fw-medium text-muted mb-3">Countries</p>
|
|
<div class="d-flex align-items-center mb-3">
|
|
<h4 class="fs-4 flex-grow-1 mb-0"><span class="counter-value" data-target="{{LMS::countriesCount()}}">0</span></h4>
|
|
<a href="{{route('countries.index')}}">View All</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- end card body -->
|
|
</div>
|
|
</div><!-- end col -->
|
|
<div class="col-xl-4">
|
|
<div class="card card-animate">
|
|
<div class="card-body">
|
|
<div class="d-flex align-items-center">
|
|
<div class="avatar-sm flex-shrink-0">
|
|
<span class="avatar-title bg-soft-info text-info rounded-2 fs-2">
|
|
<i data-feather="calendar" class="text-info"></i>
|
|
</span>
|
|
</div>
|
|
<div class="flex-grow-1 overflow-hidden ms-3">
|
|
<p class="text-uppercase fw-medium text-muted text-truncate mb-3">Total Campaigns</p>
|
|
<div class="d-flex align-items-center mb-3">
|
|
<h4 class="fs-4 flex-grow-1 mb-0"><span class="counter-value" data-target="{{LMS::campaignsCount()}}">0</span></h4>
|
|
<a href="{{route('campaigns.index')}}">View All</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- end card body -->
|
|
</div>
|
|
</div><!-- end col -->
|
|
</div><!-- end row -->
|
|
<div class="row">
|
|
<div class="col-xl-12">
|
|
<div class="card card-height-100">
|
|
<div class="card-header d-flex align-items-center">
|
|
<h4 class="card-title flex-grow-1 mb-0">Recent Leads</h4>
|
|
</div><!-- end cardheader -->
|
|
<div class="card-body">
|
|
<div class="table-responsive table-card">
|
|
<table class="table table-nowrap table-centered align-middle dataTable ">
|
|
<thead class="bg-light text-muted">
|
|
<tr>
|
|
<th scope="col" style="width: 10%;">Date</th>
|
|
<th scope="col">ID</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Phone</th>
|
|
<th scope="col">Qualification</th>
|
|
<th scope="col">Form</th>
|
|
</tr><!-- end tr -->
|
|
</thead><!-- thead -->
|
|
<tbody>
|
|
<?php foreach (LMS::getLeads(30) as $Lead) : ?>
|
|
<tr>
|
|
<td class="text-muted">{{mydate($Lead->created_at)}}</td>
|
|
<td class="fw-medium">{{$Lead->registration_id}}</td>
|
|
<td class="fw-medium">{{$Lead->name}}</td>
|
|
<td><a href="tel:{{$Lead->mobile}}" class="text-reset">{{$Lead->mobile}}</a></td>
|
|
<td><a href="#" class="text-reset">{{$Lead->highest_qualification}}</a></td>
|
|
<td><a href="{{route('pdf.generate')}}?id={{$Lead->registration_id}}" class="dropdown-item edit-item-btn">{{label("Print Form")}}</a></td>
|
|
</tr><!-- end tr -->
|
|
<?php endforeach; ?>
|
|
</tbody><!-- end tbody -->
|
|
</table><!-- end table -->
|
|
</div>
|
|
</div><!-- end card body -->
|
|
</div><!-- end card -->
|
|
</div><!-- end col -->
|
|
</div><!-- end row -->
|
|
</div><!-- end col -->
|
|
<div class="col-xxl-12">
|
|
<div class="card">
|
|
<div class="card-header align-items-center d-flex">
|
|
<h4 class="card-title mb-0 flex-grow-1">Today's Followup</h4>
|
|
</div><!-- end card header -->
|
|
<div class="card-body">
|
|
<div class="table-responsive table-card">
|
|
<table class="table table-nowrap table-centered align-middle">
|
|
<thead class="bg-light text-muted">
|
|
<tr>
|
|
<th scope="col" style="width: 10%;">Date</th>
|
|
<th scope="col">ID</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Phone</th>
|
|
<th scope="col">Source</th>
|
|
<th scope="col">Country</th>
|
|
</tr><!-- end tr -->
|
|
</thead><!-- thead -->
|
|
<tbody>
|
|
<?php foreach (LMS::getLeads(10) as $Lead) : ?>
|
|
<tr>
|
|
<td class="text-muted">{{mydate($Lead->created_at)}}</td>
|
|
<td class="fw-medium">{{$Lead->registration_id}}</td>
|
|
<td class="fw-medium">{{$Lead->name}}</td>
|
|
<td><a href="tel:{{$Lead->mobile}}" class="text-reset">{{$Lead->mobile}}</a></td>
|
|
<td><a href="{{route('registrations.bysource',$Lead->Source->alias)}}" class="text-reset">{{$Lead->Source->title}}</a></td>
|
|
<td><a href="{{route('registrations.bycountry',$Lead->Country->alias)}}" class="text-reset">{{$Lead->Country->title}}</a></td>
|
|
</tr><!-- end tr -->
|
|
<?php endforeach; ?>
|
|
</tbody><!-- end tbody -->
|
|
</table><!-- end table -->
|
|
</div>
|
|
</div><!-- end cardbody -->
|
|
</div><!-- end card -->
|
|
</div><!-- end col -->
|
|
</div><!-- end row -->
|
|
@endsection
|
|
@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>
|
|
var mytable = $(".dataTable").DataTable({
|
|
ordering: true,
|
|
rowReorder: {
|
|
//selector: 'tr'
|
|
},
|
|
});
|
|
</script>
|
|
@endpush
|