@extends('layouts.app')

@section('content')
    <div class="row mb-3">
        <div class="col-6">
            <h3>Площадки</h3>
        </div>
        <div class="col-6 text-end">
            <a href="{{ route('order.create') }}" class="btn btn-primary">Создать</a>
        </div>
    </div>


    @include('partials.table', [
        'id'        => $id,
        'header'    => $header,
        'strings'   => $orders,
        'routeName' => 'order.show',
    ])

    <div class="row pt-3 px-3">
        <div class="col-12 pagination">
            {{ $orders->links() }}
        </div>
    </div>

    @if($errors->any())
        @dump($errors)
    @endif

@endsection
