Finished blade designs and methods and added sortable lists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user