@lang('offer.Offers')
@if (auth('admin')->user()->hasPermissionTo('create offers', 'admin'))
@lang('offer.AddOffer')
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if (session('message'))
{{ session('message') }}
@endif
| @lang('category.ID') | @lang('offer.ImageAr') | @lang('offer.ImageEn') | @lang('offer.ArabicName') | @lang('offer.EnglishName') | @lang('offer.BranchSelection') | @lang('offer.DiscountType') | @lang('offer.Discount') | @lang('offer.Active') | @lang('category.Actions') | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $offer->id }} | --}}{{ $rowNumber++ }} |
@if ($offer->image_ar)
|
@if ($offer->image_en)
|
{{ $offer->name_ar }} | {{ $offer->name_en }} | @if (app()->getLocale() == 'en') {{ $offer->branch_id == -1 ? 'All branches' : 'Specific' }} @else {{ $offer->branch_id == -1 ? 'كل الفروع' : 'محددة' }} @endif | @if (app()->getLocale() == 'en') {{ $offer->discount_type == 'percentage' ? 'percentage' : 'fixed' }} @else {{ $offer->discount_type == 'percentage' ? 'نسبة مئوية' : 'نسبة ثابتة' }} @endif | {{ $offer->discount_value }} | {{ $offer->is_active ? __('term.Active') : __('term.Inactive') }} | @if (auth('admin')->user()->hasPermissionTo('view offers', 'admin')) @lang('category.show') @endif @if (!checkOfferUsed($offer->id)) @if (auth('admin')->user()->hasPermissionTo('update offers', 'admin')) @lang('category.edit') @endif @if (auth('admin')->user()->hasPermissionTo('delete offers', 'admin')) @endif @else @endif @if (auth('admin')->user()->hasPermissionTo('view offerDetails', 'admin')) @lang('offer.Details') @endif |