@extends('layouts/contentNavbarLayout') @section('title', $map->name) @section('content')

{{ $map->name }}

Challenge Map Details

Map Information
@if($map->image)
{{ $map->name }}
@endif
Name:

{{ $map->name }}

Total Steps:

{{ number_format($map->total_steps) }}

@if($map->description)
Description:

{{ $map->description }}

@endif
Checkpoints ({{ $map->checkpoints->count() }})
@forelse($map->checkpoints as $checkpoint)
{{ $checkpoint->order }}
{{ $checkpoint->name }}
@if($checkpoint->description)

{{ $checkpoint->description }}

@endif

Steps to next: {{ number_format($checkpoint->steps) }}

@if($checkpoint->active_image || $checkpoint->not_reached_image)
@if($checkpoint->active_image)
Active State:
Active
@endif @if($checkpoint->not_reached_image)
Not Reached State:
Not Reached
@endif
@endif
@empty

No checkpoints found

@endforelse
Statistics
{{ number_format($map->total_steps) }}
Total Steps
{{ $map->checkpoints->count() }}
Checkpoints
{{ $map->companyChallenges->count() }}
Company Challenges
{{ $map->globalChallenges->count() }}
Global Challenges
@if($map->companyChallenges->count() > 0 || $map->globalChallenges->count() > 0)
Used by Challenges
@if($map->companyChallenges->count() > 0)
Company Challenges
    @foreach($map->companyChallenges->take(5) as $challenge)
  • {{ $challenge->title }} ({{ $challenge->company->name }})
  • @endforeach @if($map->companyChallenges->count() > 5)
  • ... and {{ $map->companyChallenges->count() - 5 }} more
  • @endif
@endif @if($map->globalChallenges->count() > 0)
Global Challenges
    @foreach($map->globalChallenges->take(5) as $challenge)
  • {{ $challenge->title }}
  • @endforeach @if($map->globalChallenges->count() > 5)
  • ... and {{ $map->globalChallenges->count() - 5 }} more
  • @endif
@endif
@endif
@endsection