@extends('backend.layouts.app')
@section('title', @$data['title'])
@section('content')
<div class="content-wrapper dashboard-wrapper mt-30">
    <!-- Main content -->
    <section class="content p-0">
        @include('backend.partials.user_navbar')

        <div class="container-fluid table-filter-container border-radius-5 p-imp-30">
            <div class="d-flex align-items-center justify-content-between flex-wrap">
                <h5 class="fm-poppins m-0 text-dark mb-2">{{ @$data['title'] }}</h5>
                <div class="d-flex align-items-center flex-wrap">
                    @if (hasPermission('support_ticket_read'))
                    <div class="form-group mb-2 mr-2">
                        <input class="daterange-table-filter" type="text" name="daterange" id="daterange" value="" />
                    </div>
                    <div class="form-group mb-2 mr-2">
                        <button type="submit" class="btn btn-primary support_ticket_table_form">{{
                            _trans('common.Submit') }}</button>
                    </div>
                    @if (hasPermission('support_ticket_create'))
                    <a href="{{ route('supportTicket.create') }}" class="btn btn-primary mb-2"> {{ _trans('project.Create ticket') }}</a>
                    @endif
                    @endif
                </div>
            </div>
        </div>

        <div class="row dataTable-btButtons">
            <div class="col-lg-12">
                <table id="table" class="table card-table table-vcenter datatable mb-0 w-100 support_ticket_table">
                    <thead>
                        <tr>
                            <th>{{ _trans('common.Date') }}</th>
                            <th>{{ _trans('common.Code') }}</th>
                            <th>{{ _trans('common.Employee name') }}</th>
                            <th>{{ _trans('common.Subject') }}</th>
                            <th>{{ _trans('common.Type') }}</th>
                            <th>{{ _trans('common.Priority') }}</th>
                            <th>{{ _trans('common.Action') }}</th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
    </section>
</div>
<input type="text" hidden id="support_ticket_data_url" value="{{ @$data['url'] }}">
@endsection
@section('script')
@include('backend.partials.datatable')
@endsection