changes
This commit is contained in:
@ -65,24 +65,28 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="text-muted">{{ $enquiry->created_at->diffForHumans() }}</td>
|
<td class="text-muted">{{ $enquiry->created_at->diffForHumans() }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript: void(0);" class="text-reset">{{ $enquiry->name }}</a>
|
<a href="javascript: void(0);"
|
||||||
|
class="text-reset">{{ $enquiry->name }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript: void(0);" class="text-reset">{{ $enquiry->email }}</a>
|
<a href="javascript: void(0);"
|
||||||
|
class="text-reset">{{ $enquiry->email }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript: void(0);" class="text-reset">{{ $enquiry->phone }}</a>
|
<a href="javascript: void(0);"
|
||||||
|
class="text-reset">{{ $enquiry->phone }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="javascript: void(0);" class="text-reset">{{ $enquiry->service?->title }}</a>
|
<a href="javascript: void(0);"
|
||||||
|
class="text-reset">{{ $enquiry->service?->title }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="fw-medium">{{ $enquiry->message }}</td>
|
<td class="fw-medium">{{ $enquiry->message }}</td>
|
||||||
<td><span class="badge badge-soft-danger">New</span></td>
|
<td><span class="badge badge-soft-danger">New</span></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ route('enquiry.markAsRead', ['id' => $enquiry->id]) }}"
|
{{-- <a href="{{ route('enquiry.markAsRead', ['id' => $enquiry->id]) }}"
|
||||||
onclick="confirmRead(this.href)"><i
|
onclick="confirmRead(this.href)"><i
|
||||||
class="ri-mail-check-line fs-17 lh-1 text-warning align-middle" data-bs-toggle="tooltip"
|
class="ri-mail-check-line fs-17 lh-1 text-warning align-middle" data-bs-toggle="tooltip"
|
||||||
data-bs-placement="top" data-bs-custom-class="custom-tooltip" title="Mark as Read"></i></a>
|
data-bs-placement="top" data-bs-custom-class="custom-tooltip" title="Mark as Read"></i></a> --}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
<th class="tb-col"><span class="overline-title">{{ label('Name') }}</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('Email') }}</span></th>
|
||||||
<th class="tb-col"><span class="overline-title">{{ label('contact') }}</span></th>
|
<th class="tb-col"><span class="overline-title">{{ label('contact') }}</span></th>
|
||||||
<th class="tb-col"><span class="overline-title">{{ label('Service') }}</span></th>
|
<th class="tb-col"><span class="overline-title">{{ label('Score') }}</span></th>
|
||||||
<th class="tb-col"><span class="overline-title">{{ label('Message') }}</span></th>
|
<th class="tb-col"><span class="overline-title">{{ label('Passed Year') }}</span></th>
|
||||||
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label('Action') }}</span>
|
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label('Action') }}</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -26,40 +26,34 @@
|
|||||||
@php
|
@php
|
||||||
$isRead = $item->is_read == 0 ? true : false;
|
$isRead = $item->is_read == 0 ? true : false;
|
||||||
@endphp
|
@endphp
|
||||||
<tr data-id="{{ $item->id }}" data-display_order="{{ $item->display_order }}" class="draggable-row">
|
<tr data-id="{{ $item->id }}" data-display_order="{{ $item->display_order }}"
|
||||||
|
class="draggable-row">
|
||||||
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $i++ }}</td>
|
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $i++ }}</td>
|
||||||
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->name }}</td>
|
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->name }}</td>
|
||||||
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->email }}</td>
|
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->email }}</td>
|
||||||
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->phone }}</td>
|
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->phone }}</td>
|
||||||
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->service?->title }}</td>
|
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->score }}</td>
|
||||||
|
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->passed_year }}</td>
|
||||||
@if ($item->message)
|
|
||||||
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">{{ $item->message }}</td>
|
|
||||||
@else
|
|
||||||
<td class="tb-col {{ $isRead ? 'text-success' : 'text-muted' }}">
|
|
||||||
-
|
|
||||||
</td>
|
|
||||||
@endif
|
|
||||||
<td class="tb-col">
|
<td class="tb-col">
|
||||||
<div class="dropdown d-inline-block">
|
<div class="dropdown d-inline-block">
|
||||||
<button class="btn btn-soft-secondary btn-sm dropdown" type="button" data-bs-toggle="dropdown"
|
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
|
||||||
aria-expanded="false">
|
data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="ri-more-fill align-middle"></i>
|
<i class="ri-more-fill align-middle"></i>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu dropdown-menu-end">
|
<ul class="dropdown-menu dropdown-menu-end">
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ route('enquiry.destroy', ['id' => $item->id]) }}" class="dropdown-item"
|
{{-- <a href="{{ route('enquiry.destroy', $item->id) }}" class="dropdown-item"
|
||||||
onclick="confirmDelete(this.href)">
|
onclick="confirmDelete(this.href)">
|
||||||
<i class="ri-delete-bin-fill text-muted me-2 align-bottom"></i>
|
<i class="ri-delete-bin-fill text-muted me-2 align-bottom"></i>
|
||||||
{{ label('Delete') }}
|
{{ label('Delete') }}
|
||||||
</a>
|
</a> --}}
|
||||||
@if ($item->is_read == 0)
|
{{-- @if ($item->is_read == 0)
|
||||||
<a href="{{ route('enquiry.markAsRead', ['id' => $item->id]) }}" class="dropdown-item"
|
<a href="{{ route('enquiry.markAsRead', ['id' => $item->id]) }}"
|
||||||
onclick="confirmRead(this.href)">
|
class="dropdown-item" onclick="confirmRead(this.href)">
|
||||||
<i class="ri-mail-check-line text-muted me-2 align-bottom"></i>
|
<i class="ri-mail-check-line text-muted me-2 align-bottom"></i>
|
||||||
{{ label('Mark as read') }}
|
{{ label('Mark as read') }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif --}}
|
||||||
</li>
|
</li>
|
||||||
{{-- <li>
|
{{-- <li>
|
||||||
<a href="{{ route('enquiry.markread', ['id' => $item->id]) }}"
|
<a href="{{ route('enquiry.markread', ['id' => $item->id]) }}"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@use('App\Models\Enquiries')
|
@use('App\Models\Enquiries')
|
||||||
@php
|
@php
|
||||||
$enquiryList = Enquiries::where('status', 1)->where('is_read', 0)->latest()->get();
|
$enquiryList = Enquiries::where('status', 1)->latest()->get();
|
||||||
$enquiryCount = $enquiryList->count();
|
$enquiryCount = $enquiryList->count();
|
||||||
@endphp
|
@endphp
|
||||||
<div class="dropdown topbar-head-dropdown header-item ms-1" id="notificationDropdown">
|
<div class="dropdown topbar-head-dropdown header-item ms-1" id="notificationDropdown">
|
||||||
|
@ -99,8 +99,8 @@ Route::middleware('auth')->group(function () {
|
|||||||
return view('backend.enquiries-list', compact('data'));
|
return view('backend.enquiries-list', compact('data'));
|
||||||
})->name('enquiries-list');
|
})->name('enquiries-list');
|
||||||
|
|
||||||
Route::delete('/enquiry/destory/{id}', function ($id) {
|
Route::delete('/enquiry/destroy/{id}', function ($id) {
|
||||||
$data = Enquiries::where('enquiry_id', $id)->firstOrFail()->delete();
|
Enquiries::where('enquiry_id', $id)->firstOrFail()->delete();
|
||||||
return response()->json(['status' => true, 'Deleted successfully']);
|
return response()->json(['status' => true, 'Deleted successfully']);
|
||||||
})->name('enquiry.destroy');
|
})->name('enquiry.destroy');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user