@extends('dashboard.app')
@section('content')
<div class="row">

    <div class="col-sm-10 mx-auto card mt-4">
        <table id="example" class="display responsive nowrap" style="width:100%">
            <thead>
                <tr>
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Phone</th>
                    <th>Email</th>
                    <th>Date</th>
                    <th>Budget</th>
                    <th>Party Size</th>
                    <th>Guys</th>
                    <th>Girls</th>
                    <th>Message</th>
                </tr>
            </thead>
            <tbody>
                @foreach ($reservations as $r)
                    <tr>
                        <td>{{ $r->first_name }}</td>
                        <td>{{ $r->last_name }}</td>
                        <td>{{ $r->phone }}</td>
                        <td>{{ $r->email }}</td>
                        <td>{{ $r->date }}</td>
                        <td>{{ $r->budget }}</td>
                        <td>{{ $r->party_size }}</td>
                        <td>{{ $r->guys }}</td>
                        <td>{{ $r->girls }}</td>
                        <td>{{ $r->message }}</td>
                    </tr>
                @endforeach
            </tbody>
        </table>
    </div>
</div>
@endsection
