@extends('layouts/contentLayoutMaster') @section('title', 'أكواد الخصم') @section('vendor-style') @endsection @section('content') أضافة كود خصم @csrf اسم الخصم * @if ($errors->has('code')) {{ $errors->first('name') }} @endif كود الخصم * @if ($errors->has('code')) {{ $errors->first('code') }} @endif النوع * kind == 'discount' ) selected="selected" @endif @endif >خصم kind == 'cash_back' ) selected="selected" @endif @endif >كاش باك @if ($errors->has('kind')) {{ $errors->first('kind') }} @endif نوع الخصم * type == 'percent' ) selected="selected" @endif @endif>نسبة type == 'fixed' ) selected="selected" @endif @endif>قيمة @if ($errors->has('type')) {{ $errors->first('type') }} @endif الخصم * @if ($errors->has('discount')) {{ $errors->first('discount') }} @endif الحد الأقصي للاستخدام * @if ($errors->has('max_usage')) {{ $errors->first('max_usage') }} @endif الحد الأقصي للمستخدم الواحد * @if ($errors->has('max_usage_for_user')) {{ $errors->first('max_usage_for_user') }} @endif تاريخ انتهاء الخصم" * @if ($errors->has('expired_date')) {{ $errors->first('expired_date') }} @endif أختر الخدمة* @foreach($packages as $package) packages as $pack) @if($package->id == $pack->id) selected="selected" @endif @endforeach >{{$package->name_ar}} @endforeach @if ($errors->has('type')) {{ $errors->first('type') }} @endif أختر الأشتراك* @foreach($subscriptions as $subscription) subscriptions as $sub) @if($subscription->id == $sub->id) selected="selected" @endif @endforeach >{{$subscription->name_ar}} @endforeach @if ($errors->has('subscriptions')) {{ $errors->first('type') }} @endif أختر المحطة* @foreach($zones as $zone) coupon_zones as $_zone) @if($zone->id == $_zone->id) selected="selected" @endif @endforeach>{{$zone->name}} @endforeach @if ($errors->has('type')) {{ $errors->first('type') }} @endif الايام * days == 'all' ) selected="selected" @endif @endif >كل الايام days == 'custom' ) selected="selected" @endif @endif >ايام معينه @if ($errors->has('days')) {{ $errors->first('days') }} @endif مفعل status == 1 ) checked @endif @endif value="1" > @if ($errors->has('status')) {{ $errors->first('status') }} @endif الأستخدام لأول طلب مكتمل فقط first_time == 1 ) checked @endif @endif value="1" > @if ($errors->has('first_time')) {{ $errors->first('first_time') }} @endif @if($data->days == 'custom') من : الي : @else اضافة يوم @endif اضافة {{-- Data list view end --}} @endsection @section('vendor-script') @endsection