@extends('main')
@section('title', 'Афиша')
@section('content')
    <div class="container">
        <div class="row hidden-xs emptyrow"></div>
            <div class="row">
                <div class="hidden-xs col-md-1"></div>
                <div class="col-md-10">
                    <h3>Ближайшие концерты</h3>
                    <table cellpadding="0" cellspacing="0" class="event_list">
                        <tbody><tr style="background-color: #FFc12d; color: black;">
                            <th width="50">Дата</th>
                            <th width="40">Время</th>
                            <th width="100">Место</th>
                            <th class="hidden-xs">Мероприятие</th>
                            <th class="hidden-xs" width="160">Телефон клуба</th>
                            <th class="hidden-xs" width="60">Карта</th>
                        </tr>

                        @foreach($events as $event)
                        <tr style="" itemscope="" itemtype="http://data-vocabulary.org/Event">
                            <td><time itemprop="startDate" datetime="{{ $event['fulldate'] }}">
                                    <span class="gig_mday">{{ $event['mday'] }}</span>/{{ $event['month'] }}</time></td>
                            <td>{{ $event['time'] }}</td>
                            <td>
                                <a href="{{ $event['url'] }}" target="blank"><span itemprop="summary">{{ $event['place'] }}</span></a>
                            </td>
                            <td class="hidden-xs">{{ $event['event'] }}</td>
                            <td class="hidden-xs"><a href="tel:{{ $event['phone'] }}">{{ $event['phone'] }}</a></td>
                            <td class="hidden-xs mapIcon"><a href="#" onclick="openWindow('map',{{ $event['place_id'] }});">
                                    <span itemprop="location"><img width="32" src="/img/gps.png"></span>
                                </a></td>
                        </tr>
                        @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        <div class="row hidden-xs emptyrow"></div>
    </div>
@endsection

@section('breadcrump')
    <ol class="breadcrumb bread">
        <li><a href="/gigs" class="breadcrumb-item">Афиша</a></li>
    </ol>
@endsection
