@extends('admin.layouts.master') @section('page-title') عرض كوبونات الخصم @endsection @push('main-copouns-active') m-menu__item--active @endpush @section('content')

ادارة كوبونات الخصم

@include('admin.includes.alerts') @if (auth('admin')->user()->can('copouns.create'))
@csrf

اضافة كوبون جديد

@if ($errors->has('copoun_code')) {{ $errors->first('copoun_code') }} @endif
ريال سعودي
@if ($errors->has('min_amount')) {{ $errors->first('min_amount') }} @endif
@if ($errors->has('expires_at')) {{ $errors->first('expires_at') }} @endif
@if ($errors->has('max_uses')) {{ $errors->first('max_uses') }} @endif
@if ($errors->has('amount')) {{ $errors->first('amount') }} @endif
ريال سعودي
@if ($errors->has('max_amount')) {{ $errors->first('max_amount') }} @endif
@if ($errors->has('cashback_amount')) {{ $errors->first('cashback_amount') }} @endif
ريال سعودي
@if ($errors->has('cashback_max_amount')) {{ $errors->first('cashback_max_amount') }} @endif
@if ($errors->has('payment_methods')) {{ $errors->first('payment_methods') }} @endif
@if ($errors->has('included_companies')) {{ $errors->first('included_companies') }} @endif
@if ($errors->has('target_users')) {{ $errors->first('target_users') }} @endif
@if ($errors->has('users')) {{ $errors->first('users') }} @endif
@endif

عرض جميع كوبونات الخصم الفعالة

@foreach($copouns as $single_copoun) @endforeach
# كود الكوبون نسبة الخصم نسبة الكاش باك عدد الاستخدامات تاريخ الانتهاء المستخدمين المستفيدين
{{ $loop->index + 1 }} {{ $single_copoun->copoun_code }} {{ $single_copoun->amount }}% {{ $single_copoun->cashback_amount }}% {{ $single_copoun->max_uses }} مرة {{ Carbon\Carbon::parse($single_copoun->expires_at)->format('Y-m-d') }} {{ ($single_copoun->target_users == 'single')? 'مجموعة محددة' : 'الكل' }} @if (auth('admin')->user()->can('copouns.delete')) @endif
@stop @push('page_level_style') @endpush @push('page_level_script') @endpush