@extends('dashboard::layouts.admin') @section('content')
{!! Breadcrumbs::render('statistic', $user) !!} @include('statistic::backend.partials.title')
@if(!$user->hackathons->isEmpty())

Purchased hackathons:

    @foreach($user->hackathons as $hackathon)
  • {{ $hackathon->title }}{{ ($hackathon->price) ? ' - ' . $hackathon->price . ' $' : '' }} {!! (array_key_exists($hackathon->id, $pricesWithDiscount)) ? '
    (Price with discount - ' . $pricesWithDiscount[$hackathon->id] . '$)
    ' : '' !!}
      @foreach($hackathon->hacks as $hack)
    • {{ $hack->title }} {{ (in_array($hack->id, $finishedHacksId)) ? '(finished)' : '' }}
    • @endforeach
  • @endforeach
@endif

Totally paid: {{ $paidTotally }} $
@if(!$user->badges->isEmpty())

Badges

    @foreach($user->badges as $badge)
  • @if(!$badge->images->isEmpty()) @endif {{ $badge->title }}
  • @endforeach
@endif
@if(!$user->profiles->isEmpty())

Profiles

    @foreach($user->profiles as $profile)
  • @if(!$profile->images->isEmpty()) @endif {{ $profile->name }}
  • @endforeach
@endif
@endsection