@extends('admin.layouts.container')

@section('content')
<style>
    .butn_red {
        background-color: #dc3545 !important;
        border-color: #dc3545 !important;
    }
    .butn_red:hover {
        background-color: #c82333 !important;
        border-color: #bd2130 !important;
    }
</style>
    <form>
        <div class="side-title">
            <div class="row">
                <div class="col-lg-6">
                    <h3>{{ $title }}</h3>
                </div>
                <div class="col-lg-6 valign">
                    <div class="edit-buttons text-right w-100">
                        <!-- Active items buttons -->
                        <a href="{{ route ('teams.destroyAll') }}" data-method="delete" class="butn statusButns status_1 tableAction btn disabled butn_blue ms-auto"><div class="cont"><span>{{ __('dashboard.sendToTrash') }}</span></div><img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape"></a>
                        <a href="#" class="butn statusButns status_1 showArchive butn_blue ms-auto"><div class="cont"><span> {{ __('dashboard.displayTrash') }} </span></div><img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape"></a>

                        <!-- Trashed items buttons -->
                        <a href="{{ route ('teams.restoreAll') }}" data-method="put" class="butn statusButns status_0 tableAction btn disabled butn_blue ms-auto"><div class="cont"><span> {{ __('dashboard.restore') }} </span></div><img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape"></a>
                        <a href="{{ route ('teams.forceDeleteAll') }}" data-method="delete" class="butn statusButns status_0 tableAction btn disabled butn_red ms-auto"><div class="cont"><span> {{ __('dashboard.delete') }} </span></div><img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape"></a>
                        <a href="#" class="butn statusButns status_0 showActive butn_blue ms-auto"><div class="cont"><span> {{ __('dashboard.displayActive') }} </span></div><img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape"></a>
                    </div>
                </div>
            </div>
        </div>

        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th scope="col">
                    <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" id="selectall" name="example1">
                        <label class="custom-control-label" for="selectall"> </label>
                    </div>
                </th>
                <th scope="col">{{ __('teams.name') }}</th>
                <th scope="col">{{ __('teams.job') }}</th>
                <th scope="col" colspan="2">{{ __('dashboard.created_at') }}</th>
                <th scope="col">{{ __('dashboard.processes') }}</th>
            </tr>
            </thead>

            <tbody class="response">
            <tr class="search_filter_form">
                <th scope="row"></th>
                <th scope="row">
                    <input type="text" name="name" value="{{ $request->name ?? '' }}" class="form-control" placeholder="">
                </th>
                <th scope="row">
                    <input type="text" name="job" value="{{ $request->job ?? '' }}" class="form-control" placeholder="">
                </th>
                <td>
                    <input type="text" placeholder="{{ __('dashboard.date_from') }}" name="date_from" value="{{ $request->date_from ?? '' }}" class="date_from form-control">
                </td>
                <td>
                    <input type="text" placeholder="{{ __('dashboard.date_to') }}" name="date_to" value="{{ $request->date_to ?? '' }}" class="date_to form-control">
                </td>
                <th scope="col">
                    <button type="button" class="butn butn_blue search">
                        <div class="cont">
                            <span> {{__('dashboard.select')}}  </span>
                        </div>
                        <img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape">
                    </button>
                </th>
            </tr>
            </tbody>
        </table>
    </form>
@endsection

<script>
    var dataTable={
        route: '{{ route("teams.grid") }}'
    }
    </script>
@section('inner_js')
    <script>
        $(document).ready(function () {
            localStorage.setItem('articleGallery', 'null');
            localStorage.setItem('oldArticleStorage', 'null')
        })
    </script>
@endsection

