@extends('layouts.admin') @section('page-title') {{ __('Referral Program') }} @endsection @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @php $adminSetting = App\Models\Utility::getAdminPaymentSetting(); $currency = $adminSetting['currency_symbol'] ? $adminSetting['currency_symbol'] : '$'; @endphp @section('content')
{{-- Transaction --}}
{{ __('Transaction') }}
@foreach ($transactions as $key => $transaction) @endforeach
# {{ __('Referral Company Name') }} {{ __('Plan Name') }} {{ __('Plan Price') }} {{ __('Commission (%)') }} {{ __('Commission Amount') }}
{{ ++$key }} {{ !empty($transaction->getUserDetails) ? $transaction->getUserDetails->name : '-' }} {{ !empty($transaction->getPlan) ? $transaction->getPlan->name : '-' }} {{ $currency . $transaction->plan_price }} {{ $transaction->commission ? $transaction->commission : '' }} {{ $currency . ($transaction->plan_price * $transaction->commission) / 100 }}
{{-- end --}} {{-- Payout Request --}}
{{ __('Payout Request') }}
@foreach ($payRequests as $key => $transaction) @endforeach
# {{ __('Company Name') }} {{ __('Requested Date') }} {{ __('Requested Amount') }} {{ __('Action') }}
{{ ++$key }} {{ !empty($transaction->getCompany) ? $transaction->getCompany->name : '-' }} {{ $transaction->date }} {{ $currency . $transaction->req_amount }}
{{-- end --}} {{-- setting --}}
{{ Form::open(['route' => 'referral-programs.store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}
{{ __('Settings') }}
is_enable == '1' ? 'checked="checked"' : '' }}>
{{ Form::label('percentage', __('Commission Percentage (%)'), ['class' => 'form-label']) }} {{ Form::number('percentage', isset($setting) ? $setting->percentage : '', ['class' => 'form-control', 'placeholder' => __('Enter Commission Percentage')]) }} @error('percentage') {{ $message }} @enderror
{{ Form::label('minimum_threshold_amount', __('Minimum Threshold Amount'), ['class' => 'form-label']) }}
{{ $currency }} {{ Form::number('minimum_threshold_amount', isset($setting) ? $setting->minimum_threshold_amount : '', ['class' => 'form-control', 'placeholder' => __('Enter Minimum Payout')]) }}
@error('minimum_threshold_amount') {{ $message }} @enderror
{{ Form::label('guideline', __('GuideLines'), ['class' => 'form-label text-dark']) }} @error('guideline') {{ $message }} @enderror
{{ Form::close() }}
{{-- end --}}
@endsection @push('scripts') @endpush