change below code to the example photo page. the output looks like receipt @extends('base') @section('main') @if(session()->get('success')) {{ session()->get('success') }} @endif Room List No Name Contact Number Room Id Room Type Date Actions @foreach($rooms as $count => $room) {{++$count}} id)}}">{{$room->first_name}} {{$room->last_name}} {{$room->contactno}} {{$room->room_id}} {{$room->room_type}} {{$room->date}} id)}}" class="btn btn-primary btn-block">Edit id)}}" method="post"> @csrf @method('DELETE') Delete @endforeach Booking Room Return @endsection
change below code to the example photo page. the output looks like receipt @extends('base') @section('main') @if(session()->get('success')) {{ session()->get('success') }} @endif Room List No Name Contact Number Room Id Room Type Date Actions @foreach($rooms as $count => $room) {{++$count}} id)}}">{{$room->first_name}} {{$room->last_name}} {{$room->contactno}} {{$room->room_id}} {{$room->room_type}} {{$room->date}} id)}}" class="btn btn-primary btn-block">Edit id)}}" method="post"> @csrf @method('DELETE') Delete @endforeach Booking Room Return @endsection
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
change below code to the example photo page. the output looks like receipt
@extends('base')
@section('main')
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
<div class="row">
<div class="col-sm-12">
@if(session()->get('success'))
<div class="alert alert-success text-center">
{{ session()->get('success') }}
</div>
@endif
</div>
<div class="col-sm-12">
<br />
<h3 class="display-5 text-center">Room List</h3>
<table class="table table-striped">
<thead>
<tr>
<th>No</th>
<th>Name</th>
<th>Contact Number</th>
<th>Room Id</th>
<th>Room Type</th>
<th>Date</th>
<th colspan="2" class="text-center">Actions</th>
</tr>
</thead>
<tbody>
@foreach($rooms as $count => $room)
<tr>
<td>{{++$count}}</td>
<td><a href="{{ route('rooms.show',$room->id)}}">{{$room->first_name}} {{$room->last_name}}</a></td>
<td>{{$room->contactno}}</td>
<td>{{$room->room_id}}</td>
<td>{{$room->room_type}}</td>
<td>{{$room->date}}</td>
<td class="text-center">
<a href="{{ route('rooms.edit',$room->id)}}" class="btn btn-primary btn-block">Edit</a>
</td>
<td class="text-center">
<form action="{{ route('rooms.destroy', $room->id)}}" method="post">
@csrf
@method('DELETE')
<button class="btn btn-danger btn-block" type="submit">Delete</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="text-center">
<a style="margin: 19px;" href="{{ route('rooms.create')}}" class="btn btn-primary">Booking Room</a>
<a style="margin: 19px;" href="{{ route('reservation')}}" class="btn btn-primary">Return</a>
</div>
<div>
</div>
</div>
</div>
</div>
@endsection
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education