You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
5.7 KiB
109 lines
5.7 KiB
2 years ago
|
@extends('admin.layouts.app')
|
||
|
@section('content')
|
||
|
|
||
|
|
||
|
<div class="content-wrapper">
|
||
|
<!-- Content Header (Page header) -->
|
||
|
<section class="content-header">
|
||
|
<div class="container-fluid">
|
||
|
<div class="row mb-2">
|
||
|
<div class="col-sm-6">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div><!-- /.container-fluid -->
|
||
|
</section>
|
||
|
|
||
|
<!-- Main content -->
|
||
|
<section class="content">
|
||
|
<div class="container-fluid">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<div class="card">
|
||
2 years ago
|
<div class="card-header d-flex flex-column">
|
||
|
<h3 class="card-title">Enquiries</h3>
|
||
|
<div class="card-tools">
|
||
|
{{-- <a class="btn btn-green" href="{{url('admin/projects/create')}}" role="button">Create</a>--}}
|
||
|
</div>
|
||
|
</div>
|
||
2 years ago
|
<!-- /.card-header -->
|
||
|
<div class="card-body">
|
||
|
@include('success.success')
|
||
|
@include('errors.error')
|
||
2 years ago
|
|
||
2 years ago
|
<form id="search" class="search-form">
|
||
|
<div class="row">
|
||
|
<div class="col-md-4">
|
||
|
<div class="input-group input-group-sm mb-3 table-search w-100">
|
||
2 years ago
|
<input type="search" name="name" class="form-control ds-input" placeholder="Search by first name" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()">
|
||
2 years ago
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
<div class="input-group input-group-sm mb-3 table-search w-100">
|
||
2 years ago
|
<input type="search" name="email" class="form-control ds-input" placeholder="Search by email" aria-label="Small" aria-describedby="inputGroup-sizing-sm" onchange="filterList()">
|
||
2 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<table class="table table-bordered">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th style="width: 10px">S.N.</th>
|
||
2 years ago
|
<th class="text-center">Full Name</th>
|
||
|
<th class="text-center">Birth Date</th>
|
||
|
<th class="text-center">Email</th>
|
||
|
<th class="text-center">Phone</th>
|
||
2 years ago
|
<th class="text-center">Action</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
2 years ago
|
@foreach($enquiries as $enquiry)
|
||
2 years ago
|
<tr>
|
||
|
<th scope="row">{{$loop->iteration}}</th>
|
||
2 years ago
|
<td class="text-center">{{$enquiry->first_name . ' ' .(!is_null($enquiry->middle_name) ? $enquiry->middle_name .' ' :''). $enquiry->last_name}}</td>
|
||
|
<td class="text-center">{{$enquiry->dob}}</td>
|
||
|
<td class="text-center">{{$enquiry->email}}</td>
|
||
|
<td class="text-center">{{$enquiry->phone}}</td>
|
||
2 years ago
|
|
||
|
<td class="d-flex justify-content-center action-icons">
|
||
2 years ago
|
<a href="{{url('admin/enquiries/'.$enquiry->id.'/view')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="view">
|
||
2 years ago
|
<i class="fa-solid fa-eye"></i>
|
||
|
</a>
|
||
2 years ago
|
<a href="{{url('admin/enquiries/'.$enquiry->id.'/delete')}}" class="btn btn-sm" data-bs-toggle="tooltip" data-bs-placement="top" title="delete" onclick="return confirm('Are you sure you want to delete?');">
|
||
|
<i class="fas fa-trash"></i>
|
||
2 years ago
|
</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
2 years ago
|
<div class="pagination-default" style="margin-top: 10px;">
|
||
|
{!! $enquiries->links() !!}
|
||
2 years ago
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<!-- /.card -->
|
||
|
|
||
|
</div>
|
||
|
<!-- /.col -->
|
||
|
</div>
|
||
|
<!-- /.row -->
|
||
|
</div><!-- /.container-fluid -->
|
||
|
</section>
|
||
|
<!-- /.content -->
|
||
|
</div>
|
||
|
|
||
|
<script>
|
||
|
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
||
|
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
|
||
|
</script>
|
||
|
|
||
|
<script>
|
||
|
const exampleEl = document.getElementById('example')
|
||
|
const tooltip = new bootstrap.Tooltip(exampleEl, options)
|
||
|
</script>
|
||
|
|
||
|
@endsection
|