@lang('offer.OfferDetails')
@if (auth('admin')->user()->hasPermissionTo('create offerDetails', 'admin')) @lang('offer.AddOfferDetails') @endif
@if (session('message'))
{{ session('message') }}
@endif @php $rowNumber = 1; @endphp @foreach ($offerDetails as $detail) {{-- @dd( $detail) --}} {{-- --}} @endforeach
@lang('category.ID') @lang('offer.Type') @lang('offer.TypeName') @lang('offer.Count') @lang('category.Actions')
{{ $detail->id }}{{ $rowNumber++ }} @if ($detail->offer_type == 'dishes') {{ __('offer.Dish') ?? __('category.none') }} @elseif ($detail->offer_type == 'addons') {{ __('offer.Addon') ?? __('category.none') }} @elseif ($detail->offer_type == 'products') {{ __('offer.Product') ?? __('category.none') }} @else {{ __('category.none') }} @endif @if ($detail->offer_type == 'dishes') {{ app()->getLocale() == 'en' ? $detail->dish->name_en : $detail->dish->name_ar }} @elseif ($detail->offer_type == 'addons') {{ app()->getLocale() == 'en' ? $detail->dish->name_en : $detail->dish->name_ar}} @elseif ($detail->offer_type == 'products') {{ app()->getLocale() == 'en' ? $detail->dish->name_en : $detail->dish->name_ar }} @else {{ __('category.none') }} @endif {{ $detail->count }} @if (auth('admin')->user()->hasPermissionTo('update offerDetails', 'admin')) @lang('category.edit') @endif @if (auth('admin')->user()->hasPermissionTo('delete offerDetails', 'admin'))
@csrf @method('DELETE')
@endif