111 lines
4.1 KiB
PHP
111 lines
4.1 KiB
PHP
@extends('admin::layouts.master')
|
|
|
|
@section('title')
|
|
Subscription
|
|
@endsection
|
|
|
|
@section('breadcrumb')
|
|
@php
|
|
$breadcrumbData = [
|
|
[
|
|
'title' => 'Subscription',
|
|
'link' => 'null',
|
|
],
|
|
[
|
|
'title' => 'Dashboard',
|
|
'link' => route('dashboard'),
|
|
],
|
|
[
|
|
'title' => 'Subscription',
|
|
'link' => null,
|
|
],
|
|
];
|
|
@endphp
|
|
@include('admin::layouts.partials.breadcrumb', $breadcrumbData)
|
|
@endsection
|
|
|
|
@section('content')
|
|
<!-- banners List Table -->
|
|
<div class="card">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h4 class="card-header">List of Subscription Email</h4>
|
|
</div>
|
|
{{-- <div class="col-md-6">
|
|
<div class="flex-column flex-md-row">
|
|
<div class="dt-action-buttons text-end pt-3 px-3">
|
|
<div class="dt-buttons btn-group flex-wrap">
|
|
<a href="{{ route('cms.banners.create') }}"
|
|
class="btn btn-secondary create-new btn-primary d-none d-sm-inline-block text-white">
|
|
<i class="bx bx-plus me-sm-1"></i>
|
|
Add New
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> --}}
|
|
</div>
|
|
<div class="card-datatable table-responsive">
|
|
<table class="table">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>S.N</th>
|
|
<th>Email</th>
|
|
<th>Created At</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-border-bottom-0">
|
|
@if (count($subscription) > 0)
|
|
@foreach ($subscription ?? [] as $subscription)
|
|
<tr>
|
|
<td>
|
|
#{{ $loop->iteration }}
|
|
</td>
|
|
<td>
|
|
<div class="d-flex align-items-center me-3">
|
|
<div class="card-title mb-0 px-3">
|
|
<h6 class="mb-0"> {{ $subscription->email }}</h6>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
{{ $subscription->created_at->toFormattedDateString() }}
|
|
</td>
|
|
|
|
<td>
|
|
<form method="POST"
|
|
action="{{ route('cms.subscription.delete', ['uuid' => $subscription->uuid]) }}"
|
|
id="deleteForm_{{ $subscription->uuid }}" class="dropdown-item">
|
|
@csrf
|
|
@method('DELETE')
|
|
<button type="submit" class="border-0 bg-transparent deleteBtn"
|
|
style="color:inherit"><i class="bx bx-trash me-1"></i> </button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@else
|
|
<tr>
|
|
<td colspan="7">No record found.</td>
|
|
</tr>
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="px-3">
|
|
{{-- {{ $subscription->links('admin::layouts.partials.pagination') }} --}}
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
{{-- style --}}
|
|
@push('required-styles')
|
|
@include('admin::vendor.dataTables.style')
|
|
@endpush
|
|
|
|
{{-- script --}}
|
|
@push('required-scripts')
|
|
@include('admin::vendor.dataTables.script')
|
|
@endpush
|