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
icon
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>&nbsp;&nbsp;
                            <a style="margin: 19px;" href="{{ route('reservation')}}" class="btn btn-primary">Return</a>
                          </div>
                        <div>

                        </div>

            </div>
        </div>
    </div>





@endsection
Deluxe Suite 01
Your reservation
from 06 May 2021 to 07 May 2021
Mr. Ahmad b Ali
madali@gmail.com
+60 195555699
Check in
15:00pm
12:00pm
Deluxe Suite
Check out
Room
2 Adults
$ 500
$ 50.50
Total
Service charge
TOTAL AMOUNT
$ 550.50
Pay later
Full payment will be done at the hotel.
Cancellable, modifiable
This offer can be cancelled or modified free of
charge until 04 May 2021, 15:00 (UTC+08:00).
Change record
Transcribed Image Text:Deluxe Suite 01 Your reservation from 06 May 2021 to 07 May 2021 Mr. Ahmad b Ali madali@gmail.com +60 195555699 Check in 15:00pm 12:00pm Deluxe Suite Check out Room 2 Adults $ 500 $ 50.50 Total Service charge TOTAL AMOUNT $ 550.50 Pay later Full payment will be done at the hotel. Cancellable, modifiable This offer can be cancelled or modified free of charge until 04 May 2021, 15:00 (UTC+08:00). Change record
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Image Element
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education