@extends('layouts.app')
@section('content')
    <div class="panel panel-primary">
        <div class="panel-heading">Zákazníci</div>
        <div class="panel-body">
            @include('flash::message')
            <div class="table-responsive">
                @if(!$customers->isEmpty())
                    <table class="table">
                        <tr>
                            <th>Jméno a příjmení</th>
                            <th>E-mail</th>
                            <th>Telefon</th>
                        </tr>
                        @foreach($customers as $customer)
                            <tr>
                                <td>{{$customer->customer_fname}} {{$customer->customer_lname}}</td>
                                <td>{{$customer->customer_email}}</td>
                                <td>{{$customer->customer_phone_number}}</td>
                            </tr>
                        @endforeach
                    </table>
                @else
                    <div class="panel-info">
                        V tuto chvíli nejsou k dispozici žádné záznamy o zákaznících
                    </div>
                @endif
            </div>
        </div>
    </div>
@endsection
