@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('contract.create') }}" class="btn btn-primary">Добавить</a>
        </div>
    </div>


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

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


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

@endsection
