@extends('layouts.app') @section('content')

Choose your slot and start playing

@foreach($grounds as $ground)

{{ $ground->name }}

  • Port Alsworth, AK
  • @if($ground->prices->isNotEmpty()) @php $minPrice = $ground->prices->min('price'); $maxPrice = $ground->prices->max('price'); @endphp
  • Price Range: {{ $minPrice }} - {{ $maxPrice }} /hr
  • @else
  • Default Price: {{ $ground->price }} /hr
  • @endif
    @foreach($ground->types as $types)
  • {{$types}}
  • @endforeach
    @php $facilities = explode(',', $ground->facilities); @endphp @foreach($facilities as $facility)
  • {{ trim($facility) }}
  • @endforeach
@endforeach
@endsection