Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('app')
- @section('content')
- <div class="home container">
- <div class="mini-header cf">
- <div class="brand"><a href="#">saveatable</a> <span>reservations made simple.</span></div>
- <div class="mini-welcome"><span>welcome back</span> <a href="#">Harry</a></div>
- </div>
- <div class="home-content cf">
- @include ('partials.sidebar');
- <div class="home-main">
- @foreach ($myCompanies->companies as $company)
- <div class="home-company">
- <h2><a href="{{ URL::to('company/' . $company->slug) }}">{{ $company->name }} Bookings</a></h2>
- <ul class="booking-list">
- @if (count($company->bookings))
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Name</th>
- <th>Adults</th>
- <th>Children</th>
- <th>Location</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- @foreach ($company->bookings AS $booking)
- <tr>
- <td>{{ $booking->first_name }}</td>
- <td>{{ $booking->adults }} Adults</td>
- <td>{{ $booking->children}} Children</td>
- <td>Main Hall</td>
- <td><a class="btn btn-primary pull-right">VIEW BOOKING</a></td>
- </tr>
- @endforeach
- </tbody>
- </table>
- @else
- <li>This company has no future bookings.</li>
- @endif
- </ul>
- </div>
- @endforeach
- </div>
- </div>
- </div>
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement