@extends('layouts.admin') @section('style') @endSection @section('content')

{{ $stats['today'] }}

Referrals Today

{{ $stats['this_week'] }}

Referrals This Week

{{ $stats['this_month'] }}

Referrals This Month

{{ $stats['notified'] }}

Notified

@component('admin.components.tabs') @foreach ($referral_logs as $log) @endforeach
No. ID Referral Code Referrer Referee Notification Status Created At Actions
{{ $log->id }} {{ $log->referrer_code }} @if ($log->referrer) {{ $log->referrer->name }}
ID: {{ $log->referrer->id }} @if ($log->referrer->email)
{{ $log->referrer->email }} @endif @else User #{{ $log->referrer_user_id }} @endif
@if ($log->user) {{ $log->user->name }}
ID: {{ $log->user->id }} @if ($log->user->email)
{{ $log->user->email }} @endif @else User #{{ $log->user_id }} @endif
@if ($log->is_notified) Notified @else Not Notified @endif {{ $log->created_at->format('d/m/Y H:i:s') }} View
@endcomponent @endsection @section('script') @endSection