@extends('layouts.main')

@section('content')
    <div class="container mt-5">

        <h1 class="mb-4">Class Timetable</h1>
        <div class="row flex flex-wrap align-items-center">
            @include('components.day', [
            'day' => 'Thursday',
            'classes' => [
                [
                    'icon' => 'fas fa-user-graduate',
                    'name' => 'Beginner Jiu jitsu',
                    'time' => '19:00 - 20:00'
                ],
                [
                    'icon' => 'fas fa-trophy',
                    'name' => 'Advanced Jiu jitsu and wrestling',

                    'time' => '20:00 - 21:00'
                ]
            ]
            ])
            @include('components.day', [
            'day' => 'Sunday',
            'classes' => [
                [
                    'icon' => 'fas fa-user-graduate',
                    'name' => 'Beginner Jiu jitsu',
                    'time' => '14:00 - 15:00'
                ],
                [
                    'icon' => 'fas fa-dumbbell',
                    'name' => 'Jiu jitsu rolling',
                    'time' => '15:00 - 16:00'
                ]
            ]
            ])
        </div>
        <div class="container text-center py-4">
            <a target="_blank" href="https://calendar.google.com/calendar/u/1?cid=Z29vZ2xlQGFjZWJqai5jby51aw" class="btn btn-primary">
                Add classes to your calendar
            </a>
        </div>
        @if(config('site.show_coaches'))
            <div class="container py-5">
                <h1 class="mb-4">Meet the Coach</h1>
                <div class="row justify-content-center">
                    @include('components.coach', [
                    'name' => 'Shaun',
                    'description' => 'A black belt under Casey Jones, and one of the coaches at SBG shropshire. with  more than ' . config('site.teaching_date')->diff(now())->years . ' years experience teaching Jiu-jitsu and wrestling. He enjoys seeing progress from his students, and often travels to competitions to help them compete.',
                    'link' => 'https://www.instagram.com/shauncsbg/'
                    ])
        </div>
    </div>
@endif
    </div>
@endsection
