@extends('adminlte::page') @section('title', 'HeroLegend') @section('content_header')

Promotion Members

@stop @section('css') @stop @section('content')
{{-- Stats --}}
Total Revenue
${{ number_format($totalRevenue, 2) }}
Success Packs
{{ $totalSuccess }}
Failed Packs
{{ $totalFailed }}
{{-- Charts --}}

Revenue by Date

Success by Date

{{-- Members Table --}}

Members with Active Promotions

{{ count($members) }}
@if(empty($members))

No members with active promotions

@else
@foreach($members as $m) @endforeach
Avatar Member Server Level VIP Total Buy Active Packs Actions
{{ $m['name'] }}
#{{ $m['member_id'] }}
{{ $m['server'] }} {{ $m['level'] }} VIP {{ $m['vip'] }} {{ number_format($m['diamond_total_buy']) }} @php $packColors = [ 'Stamina Pack' => ['#e67e22','#fdf2e9'], 'Gold Pack' => ['#f1c40f','#fef9e7'], 'Hero Pack' => ['#2980b9','#ebf5fb'], 'Ultimate Hero Pack' => ['#8e44ad','#f4ecf7'], ]; @endphp @foreach($m['packs'] as $pack) @php $color = $packColors[$pack['type']] ?? ['#666','#f5f5f5']; $isSuccess = !empty($pack['success']); @endphp @if($isSuccess) @endif {{ $pack['type'] }} @if(in_array($pack['type'], ['Hero Pack', 'Ultimate Hero Pack']) && $pack['value']) #{{ $pack['value'] }} @endif @endforeach Diamond Log
@endif
@stop @section('js') @endsection