@extends('user.layouts.master') @section('title', __('Referrals')) @section('content')
{{ __('Referrals') }}

{{ __('Referral Activity') }}

{{ __("See who you've referred and statistic of your referrals.") }}

{!! Panel::profile_alerts() !!} @if (sys_settings('referral_show_referred_users', 'no') == 'yes')
{{ __('Referral List') }}
@if (in_array('earning', sys_settings('referral_user_table_opts', []))) @endif @if (filled($refers)) @foreach($refers as $refer) @if (in_array('earning', sys_settings('referral_user_table_opts', []))) @endif @endforeach @else @endif
{{ __('Username') }} {{ __('Join Date') }}{{ __('Earned') }}
{{ in_array('compact', sys_settings('referral_user_table_opts', [])) ? str_compact(data_get($refer, 'referred.username')) : data_get($refer, 'referred.username') }} {{ show_date(data_get($refer, 'join_at'), true) }} {{ isset($earnings[$refer->user_id]) ? money($earnings[$refer->user_id]->sum(), base_currency(), ['dp' => 'calc']) : money('0', base_currency()) }}
{{ __("No one join yet!") }}
@if($refers->hasPages())
{{ $refers->appends(request()->except('refers'))->links('misc.pagination') }}
@endif
@endif
{{ __('Referral Commissions') }}
@if (filled($transactions)) @foreach($transactions as $tranx) @endforeach @else @endif
{{ __('Details') }} {{ __('Date') }} {{ __('Status') }} {{ __('Earning') }}
{{ $tranx->description }} {{ show_date(data_get($tranx, 'created_at'), true) }} {{ ucfirst(__(tnx_status_switch($tranx->status))) }} {!! ($tranx->completed_at) ? ' show_date($tranx->completed_at, true) ]). '"> ' : '' !!} {{ amount_z($tranx->amount, base_currency(), ['dp' => 'calc']) }}
{{ __("No transactions found!") }}
@if($transactions->hasPages())
{{ $transactions->appends(request()->except('transactions'))->links('misc.pagination') }}
@endif
{!! Panel::referral('invite-card') !!}
{!! Panel::cards('support') !!}
@endsection