tableData.blade.php 1.62 KB
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@extends('layouts.admin')

@section('title', 'View ' . $title )

@section('main-content')
    @include('partials.message')
    @include('partials.form-errors')
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <div class="row">
                <div class="col-6">
                    <h4 class="m-0 font-weight-bold text-primary float-left">{{ $title }}</h4>
                </div>
                <div class="col-6">
                    @yield('controls')
                </div>
            </div>
        </div>
        <div class="card-body">
20
            <div id="table" class="table-responsive overflow-auto" onmouseover="document.getElementById('table').focus()">
Jacob Priddy's avatar
Jacob Priddy committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
                {{--                Search/filter options--}}
                <form action="{{ $route }}" method="GET">
                    <div class="form-row">
                        <div class="form-inline col-sm-12 col-md-6 col-xl-3 text-center">
                            @include('partials.perPage')
                        </div>

                        @hasSection('filters')
                            @yield('filters')
                        @else
                            <div class="col-sm-12 col-md-4 col-xl-2 text-center">
                                <input class="btn btn-primary" type="submit" value="Filter">
                            </div>
                        @endif
                    </div>
                </form>

                <hr>

                <div class="ml-2">
                    @include('partials.table', $tableParams)
                </div>
            </div>
        </div>
    </div>
@endsection