Finished blade designs and methods and added sortable lists

This commit is contained in:
2021-09-05 16:41:14 +02:00
parent d1d2198ef5
commit 438246740f
21 changed files with 759 additions and 218 deletions

View File

@@ -1,5 +1,34 @@
@extends('layouts.app')
@section('content')
<h1 class="text-3xl">
{{ $beer->beer }}
</h1>
<p class="text-xl my-4">
Rating: <br>
<span class="text-white"> {{ $beer->rating }} </span>
</p>
<p class="text-xl">
Country: <br>
<span class="text-white"> {{ $beer->country }} </span>
</p>
<p class="text-xl my-4">
Type: <br>
<span class="text-white"> {{ $beer->type }} </span>
</p>
<p class="text-xl">
Review: <br>
<span class="text-white"> {{ $beer->review ?? '[No review added]' }} </span>
</p>
@endsection
<form class="mt-10" method="POST" action="{{ route('beer.destroy', $beer->id) }}">
@csrf
@method('DELETE')
<button class="bg-red-700 rounded-md px-2 py-1" type="submit" onclick="return confirm('Are you sure?')">
Delete beer
</button>
</form>
@endsection