Files
portal-api/resources/views/administrator/pages/customer/mail.blade.php
T
pbao9 17b02631e4 Refactor views to use new layout structure and update routes for administrator pages
- Changed view extends from "admin.main" to "administrator.layout.master" across multiple files.
- Updated route names in admin.php and administrator.php to reflect new structure for user, order, invoice, and other management functionalities.
- Adjusted view includes to point to the new directory structure for blocks and components.
- Ensured all permission checks remain intact while refactoring the views.
2026-02-02 10:31:11 +07:00

73 lines
3.3 KiB
PHP

@extends('administrator.layout.master')
@section('content')
@if (auth()->guard('admins')->user()->can('edit customer'))
<div class="card card-outline card-primary">
<div class="card-header">
@include('administrator.pages.block.nav')
</div>
<div class="card-body">
<table class="table table-invoice table-bordered">
<thead>
<tr>
<th style="width: 10px">
<label for=""></label><input type="checkbox" name="check" class="check-all"
id="">
</th>
<th>Date</th>
<th>Subject</th>
<th style="width: 40px"></th>
<th style="width: 40px"></th>
</tr>
</thead>
<tbody>
@if (count($emails) > 0)
@foreach ($emails as $item)
<tr>
<td>
<input type="checkbox" name="id[]" id="" value="{{ $item->id }}">
</td>
<td>
{{ $item->created_at }}
</td>
<td>
{{ $item->subject }}
</td>
<td>
<a target="_blank"
href="{{ route('customer.email', ['userid' => $userid, 'email_id' => $item->id]) }}">
<i class="fas fa-share"></i>
</a>
</td>
<td>
<form action="" method="post">
@csrf
@method('put')
<input type="hidden" name="mail_id" value="{{ $item->id }}">
<button type="submit" class="text-danger"><i class="fas fa-trash"></i></button>
</form>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="8">
No Records Found
</td>
</tr>
@endif
</tbody>
<tfoot>
{!! $emails->withQueryString()->links() !!}
</tfoot>
</table>
</div>
</div>
@else
<div class="alert alert-danger alert-dismissible">
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Customer
management department</h5>
</div>
@endif
@endsection