From d1fe4536cc039450b540104e382db0d01d5cf886 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Fri, 19 Jun 2020 02:16:51 +0100 Subject: Initial commit --- resources/views/index.blade.php | 49 ++++++++++ resources/views/layout/default.blade.php | 20 +++++ .../views/layout/partial/footer-scripts.blade.php | 0 resources/views/layout/partial/footer.blade.php | 0 resources/views/layout/partial/head.blade.php | 13 +++ resources/views/layout/partial/header.blade.php | 0 resources/views/layout/partial/nav.blade.php | 0 resources/views/welcome.blade.php | 100 --------------------- 8 files changed, 82 insertions(+), 100 deletions(-) create mode 100644 resources/views/index.blade.php create mode 100644 resources/views/layout/default.blade.php create mode 100644 resources/views/layout/partial/footer-scripts.blade.php create mode 100644 resources/views/layout/partial/footer.blade.php create mode 100644 resources/views/layout/partial/head.blade.php create mode 100644 resources/views/layout/partial/header.blade.php create mode 100644 resources/views/layout/partial/nav.blade.php delete mode 100644 resources/views/welcome.blade.php (limited to 'resources/views') diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php new file mode 100644 index 0000000..cde358d --- /dev/null +++ b/resources/views/index.blade.php @@ -0,0 +1,49 @@ +@extends('layout.default') + +@section('content') + + +@foreach ($tournaments as $tournament) + +
+
+

{{ $tournament->name }}

+
+ +
+ + + + + + + + + + + + + + + + + + @foreach ($tournament->matches as $match) + + + + + + + + + + @endforeach + + +
#HomeAwayVenueRefereeDate
{{ $match->id }}{{ $match->homeTeam()->first()->getName() }}{{ $match->score }}
{{$match->half_score}}
{{ $match->awayTeam()->first()->getName() }}{{ $match->getDisplayName() }}{{ $match->referee }}{{ $match->getDisplayDate() }}
+
+
+@endforeach + +@endsection \ No newline at end of file diff --git a/resources/views/layout/default.blade.php b/resources/views/layout/default.blade.php new file mode 100644 index 0000000..f39de87 --- /dev/null +++ b/resources/views/layout/default.blade.php @@ -0,0 +1,20 @@ + + + + + @include('layout.partial.head') + + + + @include('layout.partial.nav') + + @include('layout.partial.header') + + @yield('content') + + @include('layout.partial.footer') + + @include('layout.partial.footer-scripts') + + + \ No newline at end of file diff --git a/resources/views/layout/partial/footer-scripts.blade.php b/resources/views/layout/partial/footer-scripts.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/layout/partial/footer.blade.php b/resources/views/layout/partial/footer.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/layout/partial/head.blade.php b/resources/views/layout/partial/head.blade.php new file mode 100644 index 0000000..1b63459 --- /dev/null +++ b/resources/views/layout/partial/head.blade.php @@ -0,0 +1,13 @@ + + + + + + +Rugby + + + + + + \ No newline at end of file diff --git a/resources/views/layout/partial/header.blade.php b/resources/views/layout/partial/header.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/layout/partial/nav.blade.php b/resources/views/layout/partial/nav.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index 3fb48cc..0000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - Laravel - - - - - - - - -
- @if (Route::has('login')) - - @endif - -
-
- Laravel -
- - -
-
- - -- cgit v1.2.3