@extends('backend.master') @php $table_name = 'user_wise_coupon_settings'; @endphp @section('table') {{ $table_name }} @stop @section('mainContent') {!! generateBreadcrumb() !!}
@if(isset($edit))

@if(isset($edit)) {{__('common.Update')}} @endif

@if (permissionCheck('coupons.inviteSettings.store'))
@endif @csrf @if(isset($edit)) @endif
{{-- input title --}}
has('max_limit') ? ' autofocus' : '' }} class="primary_input_field name {{ @$errors->has('max_limit') ? ' is-invalid' : '' }}" placeholder="{{ __('coupons.Maximum Limit') }}" type="number" step="any" min="0" value="{{isset($edit)?$edit->max_limit:old('max_limit')}}"> @if ($errors->has('max_limit')) {{ @$errors->first('max_limit') }} @endif
{{-- input title --}}
has('amount') ? ' autofocus' : '' }} class="primary_input_field name {{ @$errors->has('amount') ? ' is-invalid' : '' }}" placeholder="{{ __('coupons.Amount') }}" type="number" step="any" min="0" value="{{isset($edit)?$edit->amount:old('amount')}}"> @if ($errors->has('amount')) {{ @$errors->first('amount') }} @endif
@php $tooltip = ""; if (permissionCheck('coupons.inviteSettings.store')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
@endif

{{__('coupons.Referral Setting')}}

{{-- --}} {{-- --}} @foreach($inviteSettings as $key => $s) {{-- --}} {{-- --}} @endforeach
{{ __('common.SL') }}{{ __('role.Role') }}{{ __('coupons.Amount') }} {{ __('coupons.Type') }} {{ __('coupons.Maximum Limit') }}{{ __('common.Date') }}{{ __('common.Status') }} {{ __('common.Action') }}
{{ translatedNumber($key+1) }}{{@$s->role->name }}{{getPriceFormat(@$s->amount) }} {{@$s->type==1?trans('coupons.Fixed'):trans('coupons.Percentage') }} {{getPriceFormat($s->max_limit,false) }}{{ showDate($s->created_at) }}
@endsection @push('scripts') @endpush