@extends('layout')
@section('title', 'اکاوؑنٹ کیٹیگری')
@section('page_title', 'اکاوؑنٹ کیٹیگری')
@section('content')
    <div class="row">
        @if(auth()->user()->hasPermissionTo('create account category'))

            <div class="col-md-4">
                <div class="panel panel-card margin-b-30">
                    <div class="panel-body">

                        <form id="add_category_form">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label for="head_name">اکاوؑنٹ کیٹیگری نام <span
                                                class="text-danger">*</span></label>
                                        <input type="text" id="head_name" autofocus class="form-control" name="name">
                                        <span class="text-danger error" id="name_error"></span>
                                    </div>
                                </div>

                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="">
                                        @csrf
                                        <button name="createCitySubmit" id="submit_btn"
                                                class="btn btn-sm btn-primary btn-lg"
                                                type="submit">
                                            محفوظ
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
            </div>

        @endif
        <div class="{{ auth()->user()->hasPermissionTo('create account category')?'col-md-8': 'col-md-12' }}">
            <div class="panel panel-card ">
                <div class="panel-body">
                    <table id="cities_table" class="table table-bordered">
                        <thead class="bg-gold text-white">
                        <tr style="white-space: nowrap">
                            <th>#</th>
                            <th>نام</th>
                            <th>ایکشن</th>
                        </tr>
                        </thead>
                        <tbody>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    </div>
    <div class="modal fade" id="editExpenseHeadModal" tabindex="-1" role="dialog">
        <div class="modal-dialog">
            <div class="modal-content panel-card" id="editExpenseHeadData">

            </div>
        </div>
    </div>

@endsection

@section('javascript')
    @include('categories.js')
@endsection
