Viewing file: index.blade.php (4.23 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('admin.layouts.app') @section('title') {{ __('email_list') }} @endsection
@section('content') <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h3 class="card-title" style="line-height: 36px;">{{ __('email_list') }}</h3> <button type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="click btn-group dropleft btn bg-primary dropdown-toggle float-right d-flex align-items-center justify-content-center"> <i class="fas fa-file-export"></i> {{ __('export_list') }} </button> <div class="dropdown-menu px-3" onclick="event.stopPropagation()" aria-labelledby="dropdownMenuButton"> @include('newsletter::export-component', ['total' => $emails->total()]) </div> </div>
<div class="card-body table-responsive p-0"> <table class="table table-hover text-nowrap table-bordered"> @if ($emails->count() > 0) <thead> <tr> <th width="5%">#</th> <th width="50%">{{ __('email') }}</th> <th width="40%">{{ __('subscriptions_date') }}</th> @if (userCan('newsletter.delete')) <th width="5%">{{ __('action') }}</th> @endif </tr> </thead> @endif <tbody> @forelse ($emails as $email) <tr> <td>{{ $loop->iteration }}</td> <td>{{ $email->email }}</td> <td>{{ date('d M, Y', strtotime($email->created_at)) }}</td> @if (userCan('newsletter.delete')) <td> <form action="{{ route('module.newsletter.delete', $email->id) }}" method="POST" class="d-inline"> @method('DELETE') @csrf <button data-toggle="tooltip" data-placement="top" title="{{ __('delete_email') }}" onclick="return confirm('{{ __('are_you_sure_want_to_delete_this_item') }}')" class="btn bg-danger"> <i class="fas fa-trash"></i> </button> </form> </td> @endif </tr> @empty <tr> <td colspan="10" class="text-center"> <x-not-found word="Email" /> </td> </tr> @endforelse </tbody> </table> </div> <div class="card-footer "> <div class="d-flex justify-content-center"> {{ $emails->links() }} </div> </div> </div> </div> </div> </div> @endsection
|