@extends('admin::layouts.app') @section('content')
@include('admin::partials.title-pad', [ 'title' => 'Promotion Report', 'search' => $search, 'searchPlaceholder' => 'Search Promotion...', 'list' => $offers, 'export' => 'admin.promotion-reports.excel', 'filter' => true, ])
@forelse($offers as $key => $offer) @empty @endforelse
# Business User Name Branch Name Service Name Promotion Value Start Date End Date Status
{{ $key + 1 }} {{ isset($offer->createdBy->name) ? ucwords($offer->createdBy->name) : '-'}} @php $branchNames = $offer->branches->pluck('name_en')->implode(', '); @endphp {{ isset($branchNames) ? ucwords($branchNames) : '-' }} @php $serviceNames = $offer->services->pluck('name_en')->implode(', '); @endphp {{ isset($serviceNames) ? ucwords($serviceNames) : '-' }} {{ isset($offer->discount) ? $offer->discount : '-' }} {{ $offer->start_date ? Modules\Admin\Helpers\GeneralHelper::dateFormat($offer->start_date) : '-' }} {{ $offer->end_date ? Modules\Admin\Helpers\GeneralHelper::dateFormat($offer->end_date) : '-' }} {{ ucfirst($offer->status) }}

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

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