change below code to the example photo page. the photo is just example but the layout should be like that @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 photo is just example but the layout should be like that @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
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 2.3CP
Related questions
Question
change below code to the example photo page. the photo is just example but the layout should be like that
@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 5 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
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr