@php $headerOption = [ 'title' => $module, 'header_buttons' => [ ($permission['create'] ? ''. \Config::get('settings.icon_add') .' Add New' : '') ], 'filters' => isset($filters) ? $filters : [], 'data' => isset($data) ? $data : [] ]; @endphp @extends('admin.layouts.layout', $headerOption) @section('content')
Total Raised

$ 7,450

+ 0.2% From previous period
Active Campaigns

26

+ 0.2% From previous period
NFT Sold

2563

0% From previous period
Pending Withdrawals

$ 28,452

+ 0.2% From previous period
@if ($permission['edit'] || $permission['destroy']) @endif @php $dummyCampaigns = [ [ 'name' => 'Medical Aid Fund', 'subtitle' => 'Emergency Support', 'fund_raised' => 'Jon Doe', 'goal' => '$8,000', 'raised' => '$5,600', 'percent' => 70, 'nfts' => 120, 'status' => 'Active', 'badge_bg' => '#FFE4E4', 'badge_color' => '#D32F2F', 'icon' => 'bi-heart', 'icon_color' => 'text-danger', 'progress_bg' => '#FF5D5D', 'row_bg' => '#FFE4E4', 'id' => 4, ], [ 'name' => 'Innovation Grant', 'subtitle' => 'Tech & Research', 'fund_raised' => 'Abram Smith', 'goal' => '$12,000', 'raised' => '$4,800', 'percent' => 40, 'nfts' => 60, 'status' => 'Pending', 'badge_bg' => '#FFF7E0', 'badge_color' => '#D28A00', 'icon' => 'bi-lightbulb', 'icon_color' => 'text-warning', 'progress_bg' => '#FFD600', 'row_bg' => '#FFF7E0', 'id' => 5, ], [ 'name' => 'Clean Water Project', 'subtitle' => 'Community Wells', 'fund_raised' => 'Denial Lee', 'goal' => '$6,500', 'raised' => '$3,250', 'percent' => 50, 'nfts' => 45, 'status' => 'Pending', 'badge_bg' => '#E0F7FA', 'badge_color' => '#0097A7', 'icon' => 'bi-droplet', 'icon_color' => 'text-info', 'progress_bg' => '#00BCD4', 'row_bg' => '#E0F7FA', 'id' => 6, ], [ 'name' => 'Green Sports Initiative', 'subtitle' => 'Eco-Friendly Facilities', 'fund_raised' => 'Pitter Parker', 'goal' => '$15,000', 'raised' => '$9,000', 'percent' => 60, 'nfts' => 200, 'status' => 'Active', 'badge_bg' => '#D4FCE5', 'badge_color' => '#1BAA58', 'icon' => 'bi-tree', 'icon_color' => 'text-success', 'progress_bg' => '#23C46D', 'row_bg' => '#F5F5F5', 'id' => 7, ], [ 'name' => 'Youth Sports Scholarship', 'subtitle' => 'Talent Development', 'fund_raised' => 'Marcus Thorne', 'goal' => '$10,000', 'raised' => '$7,000', 'percent' => 70, 'nfts' => 150, 'status' => 'Active', 'badge_bg' => '#E3F2FD', 'badge_color' => '#1976D2', 'icon' => 'bi-award', 'icon_color' => 'text-primary', 'progress_bg' => '#1976D2', 'row_bg' => '#E3F2FD', 'id' => 8, ], [ 'name' => 'Women in Sports Fund', 'subtitle' => 'Empowerment', 'fund_raised' => 'Jemson Williams', 'goal' => '$9,500', 'raised' => '$2,850', 'percent' => 30, 'nfts' => 80, 'status' => 'Pending', 'badge_bg' => '#FFF3E0', 'badge_color' => '#F57C00', 'icon' => 'bi-gender-female', 'icon_color' => 'text-warning', 'progress_bg' => '#F57C00', 'row_bg' => '#FFF3E0', 'id' => 9, ], [ 'name' => 'Sports Equipment Drive', 'subtitle' => 'Gear for All', 'fund_raised' => 'Jems Brown', 'goal' => '$5,000', 'raised' => '$4,000', 'percent' => 80, 'nfts' => 100, 'status' => 'Active', 'badge_bg' => '#F1F8E9', 'badge_color' => '#388E3C', 'icon' => 'bi-basket', 'icon_color' => 'text-success', 'progress_bg' => '#388E3C', 'row_bg' => '#F1F8E9', 'id' => 10, ], [ 'name' => 'Paralympic Support', 'subtitle' => 'Inclusive Sports', 'fund_raised' => 'Leen Carter', 'goal' => '$7,200', 'raised' => '$2,160', 'percent' => 30, 'nfts' => 40, 'status' => 'Pending', 'badge_bg' => '#EDE7F6', 'badge_color' => '#7E57C2', 'icon' => 'bi-universal-access', 'icon_color' => 'text-purple', 'progress_bg' => '#7E57C2', 'row_bg' => '#EDE7F6', 'id' => 11, ], [ 'name' => 'Rural Sports Outreach', 'subtitle' => 'Remote Communities', 'fund_raised' => 'Pitter Williams', 'goal' => '$8,800', 'raised' => '$5,280', 'percent' => 60, 'nfts' => 90, 'status' => 'Active', 'badge_bg' => '#FFFDE7', 'badge_color' => '#FBC02D', 'icon' => 'bi-geo-alt', 'icon_color' => 'text-warning', 'progress_bg' => '#FBC02D', 'row_bg' => '#FFFDE7', 'id' => 12, ], [ 'name' => 'Coach Training Program', 'subtitle' => 'Skill Development', 'fund_raised' => 'Mackenzie Johnson', 'goal' => '$11,000', 'raised' => '$8,250', 'percent' => 75, 'nfts' => 110, 'status' => 'Active', 'badge_bg' => '#E0F2F1', 'badge_color' => '#00897B', 'icon' => 'bi-person-badge', 'icon_color' => 'text-info', 'progress_bg' => '#00897B', 'row_bg' => '#E0F2F1', 'id' => 13, ], ]; @endphp @foreach($dummyCampaigns as $c) @if ($permission['edit'] || $permission['destroy']) @endif @endforeach {{-- @if (count($data) != 0) @foreach ($data as $key => $val) @if ($permission['edit'] || $permission['destroy']) @endif @endforeach @else @endif --}}
Campaign Name {!! \App\Helpers\Helper::sort($routePrefix . '.index', 'title', $orderBy) !!} Fund Raised Goal Raised NFTs Minted Status Action
{{ $c['name'] }}
{{ $c['subtitle'] }}
@php // Generate initials $parts = preg_split('/\s+/', trim($c['fund_raised'])); $first = $parts[0] ?? ''; $last = $parts[count($parts) - 1] ?? ''; $initials = strtoupper(mb_substr($first, 0, 1) . mb_substr($last, 0, 1)); // Deterministic "random" color based on name $palette = [ '#FEC84B', // amber '#F97066', // red '#84C5F4', // blue '#6CE9A6', // green '#9B8AFB', // purple '#F7B4A3', // coral '#A3E3F7', // cyan '#FFD3A3', // orange ]; $idx = crc32($c['fund_raised']) % count($palette); $bg = $palette[$idx]; @endphp {{ $initials }}
{{ $c['fund_raised'] }} {{ $c['goal'] }}
{{ $c['raised'] }} ({{ $c['percent'] }}%)
{{ $c['nfts'] }} ● {{ $c['status'] }}
{{ $val->title }} {!! $val->statuses[$val->status]['name'] !!} @if ($permission['edit']) {!! \Config::get('settings.icon_edit') !!} @endif @if ($permission['destroy'] && $val->id != auth()->user()->id) {!! \Config::get('settings.icon_delete') !!} {!! html()->form('DELETE', route($routePrefix . '.destroy', $val->id))->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $val->id, ])->open() !!} {!! html()->form()->close() !!} @endif
No Data
@include('admin.components.pagination') @endsection