@extends('admin::layouts.app') @section('content')
@include('admin::partials.title-pad', [ 'title' => __('admin.my_offers'), 'search' => $search, 'searchPlaceholder' => __('placeholder.search_offer'), 'create' => 'admin.offers.create', 'list' => $offers, ])
@forelse($offers as $key => $offer) @empty @endforelse
# {{ __('admin.offer_type') }} {{ __('admin.offer_name_coupon_code') }} {{ __('admin.discount_value') }} {{ __('admin.usage') }} {{ __('admin.workshop_name') }} {{ __('admin.services') }} {{ __('admin.start_date') }} {{ __('admin.end_date') }} {{ __('admin.status') }} {{ __('admin.action') }}
{{ $key + 1 }} {{ __('static.'.$offer->offer_type) }} {{ $offer->promotion_name ? ucfirst($offer->promotion_name) : $offer->coupon_code}} {{ ucfirst($offer->discount) }} % @if($offer->usage_type == App\Helpers\ConstantHelper::UNLIMITED) {{ ucfirst($offer->usage_type) }} @else {{ ucfirst($offer->usage_type) }} / Person @endif @foreach ($offer->workshops as $offerWorkshop) {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $offerWorkshop->name_ar : $offerWorkshop->name_en }}, @endforeach @foreach ($offer->services as $offerService) {{ $locale == App\Helpers\ConstantHelper::ARABIC ? $offerService->name_ar : $offerService->name_en }}, @endforeach {{ $offer->start_date ? Modules\Admin\Helpers\GeneralHelper::dateFormat($offer->start_date) : '-' }} {{ $offer->end_date ? Modules\Admin\Helpers\GeneralHelper::dateFormat($offer->end_date) : '-' }} {{ __('static.'.$offer->status) }} @if (Auth::user()->hasPermission('admin.offers.edit')) @endif @if (Auth::user()->hasPermission('admin.offers.delete')) @endif

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

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