@extends('admin::layouts.app') @section('content')
@include('admin::partials.title-pad', [ 'title' => 'Branch Services Report', 'search' => $search, 'searchPlaceholder' => 'Search service Services...', 'list' => $branches, 'export' => 'admin.branches-services-reports.excel', 'filter' => true, ])
@forelse($branches as $key => $branch) @empty @endforelse
# Branch Name Service Name Address Current Promotion Service Status Publish Date Validity
{{ $key + 1 }} {{ isset($branch->name_en) ? ucfirst($branch->name_en) : '-' }} @php $serviceNames = $branch->services->pluck('name_en')->implode(', '); @endphp {{ $serviceNames ? $serviceNames : 'NA' }} {{ isset($branch->address) ? ucfirst($branch->address) : '-' }} @foreach ($branch->services as $key => $service) @foreach ($service->offers as $key => $offer) @if($offer->promotion_name) {{ $offer->promotion_name ? $offer->promotion_name : '-' }} @else {{ $offer->coupon_code ? $offer->coupon_code : '-' }} @endif @endforeach @endforeach @php $serviceStatus = $branch->services->pluck('status')->implode(', '); @endphp {{ $serviceStatus ? ucwords($serviceStatus) : '-' }} @php $servicePublished = $branch->services->pluck('approved_at')->implode(', '); @endphp {{ $servicePublished ? Modules\Admin\Helpers\GeneralHelper::dateFormat($servicePublished) : '-' }} @foreach ($branch->services as $key => $service) @foreach ($service->offers as $key => $offer) {{ isset($offer->end_date) ? Modules\Admin\Helpers\GeneralHelper::dateFormat($offer->end_date) : '-' }} @endforeach @endforeach

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

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