@extends('admin::layouts.app') @section('content')
@include('admin::partials.title-pad', [ 'title' => __('master.banner_master'), 'search' => $search, 'searchPlaceholder' => __('placeholder.search_title'), 'create' => 'admin.banners.create', 'list' => $banners, ])
{{-- Table Start --}} @forelse ($banners as $key => $banner) @empty @endforelse
# {{ __('master.title_in_english') }} {{ __('master.title_in_arabic') }} {{ __('master.banner') }} {{ __('admin.status') }} {{ __('admin.created_at') }} {{ __('admin.action') }}
{{ $key + 1 }} {{ $banner->title_en }} {{ $banner->title_ar }} {{ ucfirst($banner->status) }} {{ $banner->created_at ? Modules\Admin\Helpers\GeneralHelper::dateFormat($banner->created_at) : '-' }} @if (Auth::user()->hasPermission('admin.banners.edit')) @endif @if (Auth::user()->hasPermission('admin.banners.delete')) @endif

{{ __('admin::message.no_records_found') }}

{{-- Table End --}}
{{-- Pagination --}} {{ $banners->appends(request()->input())->links('admin::partials.pagination') }} {{-- Pagination End --}}
@endsection