<div class="body-content">
    <div class="contacts">
        <div class="contacts-box">
            <div class="contacts-body">
                <div class="contacts-box">
                    <div class="contact-row p-0 border-0">
                        <div class="table-responsive">
                            <table class="table">
                                <thead>

                                <tr>
                                    <th class="column_title">
                                        <div class="header-content" >
                                            <input class="form-check-input custom-control-input" type="checkbox" name="example1" style="border-radius:15px" id="selectall">
                                            <label class="form-check-label" for='selectall'>{{ __('contact_lists.title') }}</label>
                                            <div class="header-actions" data-field="title">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_address">
                                        <div class="header-content" >
                                            <label class="form-check-label" for='selectall'>{{ __('contact_lists.address') }}</label>
                                            <div class="header-actions" data-field="address">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_email">
                                        <div class="header-content" >
                                            <label class="form-check-label" for='selectall'>{{ __('contact_lists.email') }}</label>
                                            <div class="header-actions" data-field="email">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_is_top_customer">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.is_top_customer') }}</span>
                                            <div class="header-actions" data-field="is_top_customer">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_decision_maker_status">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.decision_maker_status') }}</span>
                                            <div class="header-actions" data-field="decision_maker_status">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_status">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.status') }}</span>
                                            <div class="header-actions" data-field="status">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_employee_id">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.employee_id') }}</span>
                                            <div class="header-actions" data-field="employee_id">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_country_id">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.country_id') }}</span>
                                            <div class="header-actions" data-field="country_id">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_company_id">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.company_id') }}</span>
                                            <div class="header-actions" data-field="company_id">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_budget">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.budget') }}</span>
                                            <div class="header-actions" data-field="budget">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_avg_stand_annual">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.avg_stand_annual') }}</span>
                                            <div class="header-actions" data-field="avg_stand_annual">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_avg_events_annual">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.avg_events_annual') }}</span>
                                            <div class="header-actions" data-field="avg_events_annual">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_company_website">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.company_website') }}</span>
                                            <div class="header-actions" data-field="company_website">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_role">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.role') }}</span>
                                            <div class="header-actions" data-field="role">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th class="column_note">
                                        <div class="header-content" >
                                            <span>{{ __('contact_lists.note') }}</span>
                                            <div class="header-actions" data-field="note">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th colspan="2" class="column_created_at">
                                        <div class="header-content" >
                                            <span>{{ __('dashboard.created_at') }}</span>
                                            <div class="header-actions" data-field="created_at">
                                                <button class="arrow-btn" title="{{ __('dashboard.sort_desc') }}">▾</button>
                                                <button class="dots-btn">⋮</button>
                                                <div class="dropdown-filter">
                                                    <ul>
                                                        <li data-order="ASC">{{ __('dashboard.sort_asc') }}</li>
                                                        <li data-order="DESC">{{ __('dashboard.sort_desc') }}</li>
                                                        <li data-order="reset">{{ __('dashboard.reset') }}</li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </th>
                                    <th>
                                        <div class="header">
                                            <button class="dots-btn">⋮</button>
                                            <div class="dropdown-columns">
                                                <ul>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('title','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="title" >{{__('contact_lists.title')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('address','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="address" >{{__('contact_lists.address')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('email','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="email" >{{__('contact_lists.email')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('is_top_customer','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="is_top_customer" >{{__('contact_lists.is_top_customer')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('decision_maker_status','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="decision_maker_status" >{{__('contact_lists.decision_maker_status')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('status','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="status" >{{__('contact_lists.status')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('employee_id','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="employee_id" >{{__('contact_lists.employee_id')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('country_id','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="country_id" >{{__('contact_lists.country_id')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('company_id','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="company_id" >{{__('contact_lists.company_id')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('budget','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="budget" >{{__('contact_lists.budget')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('avg_stand_annual','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="avg_stand_annual" >{{__('contact_lists.avg_stand_annual')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('avg_events_annual','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="avg_events_annual" >{{__('contact_lists.avg_events_annual')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('company_website','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="company_website" >{{__('contact_lists.company_website')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('role','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="role" >{{__('contact_lists.role')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('note','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="note" >{{__('contact_lists.note')}}</li>
                                                    <li ><input type="checkbox" class="hidden_column" {{ auth()->user()->disabledColumn('created_at','contact_lists') ? 'checked' : '' }} onclick="ToggleItem(this)" data-module="contact_lists" data-column="created_at" >{{ __('dashboard.created_at') }}</li>
                                                </ul>
                                            </div>
                                        </div>
                                    </th>
                                </tr>

                                <tr class="search-tr">
                                    <td class="column_title">
                                        <input type="hidden" name="orderBy" id="orderBy" value='{{ $request->orderBy ? json_encode($request->orderBy) : '{"key":"id","value":"DESC"}' }}'>

                                        <input type="text" name="title" value="{{ $request->title ?? '' }}" class="form-control" placeholder="Name">
                                    </td>
                                    <td class="column_address">
                                        <input type="text" name="address" value="{{ $request->address ?? '' }}" class="form-control" placeholder="Name">
                                    </td>
                                    <td class="column_email">
                                        <input type="text" name="email" value="{{ $request->email ?? '' }}" class="form-control" placeholder="Name">
                                    </td>
                                    <td class="column_is_top_customer">
                                        <select name="is_top_customer" id="" class="form-control form-select">
                                            <option value="">{{__('dashboard.all')}}</option>
                                            <option {{($request->is_top_customer ?? '') == 0 ? 'selected' : ''}} value="0">{{ __('contact_lists.no') }}</option>
                                            <option {{($request->is_top_customer ?? '') == 1 ? 'selected' : ''}} value="1">{{ __('contact_lists.yes') }}</option>
                                        </select>
                                    </td>

                                    <td class="column_decision_maker_status">
                                        <select name="decision_maker_status" id="" class="form-control form-select">
                                            <option value="">{{__('dashboard.all')}}</option>
                                            @foreach($decision_statuses as $row)
                                                <option {{($request->decision_maker_status ?? '') == $row ? 'selected' : ''}} value="{{$row}}">{{ __('contact_lists.decision_maker_statuses.'.$row) }}</option>
                                            @endforeach
                                        </select>
                                    </td>
                                    <td class="column_status">
                                        <select name="type" id="" class="form-control form-select">
                                            <option value="">{{__('dashboard.all')}}</option>
                                            @foreach($statuses as $row)
                                                <option {{($request->type ?? '') == $row ? 'selected' : ''}} value="{{$row}}">{{ __('contact_lists.statuses.'.$row) }}</option>
                                            @endforeach
                                        </select>
                                    </td>
                                    <td class="column_employee_id">
                                        <select name="employee_id" id="" class="form-control form-select">
                                            <option value="">{{__('dashboard.all')}}</option>
                                            @foreach($employees as $row)
                                                <option {{($request->employee_id ?? '') == $row->id ? 'selected' : ''}} value="{{$row->id}}">{{ $row->name }}</option>
                                            @endforeach
                                        </select>
                                    </td>
                                    <td class="column_country_id">
                                        <select name="country_id" id="" class="form-control form-select">
                                            <option value="">{{__('dashboard.all')}}</option>
                                            @foreach($countries as $row)
                                                <option {{($request->country_id ?? '') == $row->id ? 'selected' : ''}} value="{{$row->id}}">{{ $row->title }}</option>
                                            @endforeach
                                        </select>
                                    </td>
                                    <td class="column_company_id">
                                        <select name="company_id" id="" class="form-control form-select">
                                            <option value="">{{__('dashboard.all')}}</option>
                                            @foreach($companies as $row)
                                                <option {{($request->company_id ?? '') == $row->id ? 'selected' : ''}} value="{{$row->id}}">{{ $row->title }}</option>
                                            @endforeach
                                        </select>
                                    </td>
                                    <td class="column_budget">
                                        <input type="text" name="budget" value="{{ $request->budget ?? '' }}" class="form-control" placeholder="Budget">
                                    </td>
                                    <td class="column_avg_stand_annual">
                                        <input type="text" name="avg_stand_annual" value="{{ $request->avg_stand_annual ?? '' }}" class="form-control" placeholder="{{__('contact_lists.avg_stand_annual')}}">
                                    </td>
                                    <td class="column_avg_events_annual">
                                        <input type="text" name="avg_events_annual" value="{{ $request->avg_events_annual ?? '' }}" class="form-control" placeholder="{{__('contact_lists.avg_events_annual')}}">
                                    </td>
                                    <td class="column_company_website">
                                        <input type="text" name="company_website" value="{{ $request->company_website ?? '' }}" class="form-control" placeholder="{{__('contact_lists.company_website')}}">
                                    </td>
                                    <td class="column_role">
                                        <input type="text" name="role" value="{{ $request->role ?? '' }}" class="form-control" placeholder="{{__('contact_lists.role')}}">
                                    </td>
                                    <td class="column_note">
                                        <input type="text" name="note" value="{{ $request->note ?? '' }}" class="form-control" placeholder="{{__('contact_lists.note')}}">
                                    </td>
                                    <td class="column_created_at">
                                        <input type="text" placeholder="{{ __('dashboard.date_from') }}" name="date_from" value="{{ $request->date_from ?? '' }}" class="date_from form-control">
                                    </td>
                                    <td class="column_created_at">
                                        <input type="text" placeholder="{{ __('dashboard.date_to') }}" name="date_to" value="{{ $request->date_to ?? '' }}" class="date_to form-control">
                                    </td>
                                    <td>
                                        <button class="search-btn search"> <i class="fal fa-search"></i> </button>
                                    </td>
                                </tr>

                                </thead>
                                <tbody>
                                @foreach($contact_lists as $row)
                                    <tr>
                                        <td class="column_title">
                                            <div class="form-check d-flex align-items-center">
                                                <input class="form-check-input custom-control-input selectOne deleteCheck" name="id[]" type="checkbox" value="{{$row->id}}" id="customCheck{{$row->id}}">
                                                <label class="form-check-label" @if(auth()->user()->canAccess('contact_lists','show')) style="cursor: pointer" onclick="openModel(this)" action="{{ route ('contact_lists.show', $row->id) }}" @endif>
                                                    <div class="main-inf">
                                                        <h6 class="com-name">  {{$row->title}} </h6>
                                                    </div>
                                                </label>
                                            </div>
                                        </td>
                                        <td class="column_address"> {{ $row->address }} </td>
                                        <td class="column_email"> {{ $row->email }} </td>
                                        <td class="column_is_top_customer">  <i class="{{ $row->is_top_customer ? 'fas fa-star' : 'fal fa-star' }}"></i> </td>
                                        <td class="column_decision_maker_status">  {{ !is_null($row->decision_maker_status) ? __('contact_lists.decision_maker_statuses.'.$row->decision_maker_status) : '' }} </td>
                                        <td class="column_status">  {{ __('contact_lists.statuses.'.$row->status) }} </td>
                                        <td class="column_employee_id"> {{ $row->employee->name ?? '' }} </td>
                                        <td class="column_country_id"> {{ $row->country->currentDescription->title ?? '' }} </td>
                                        <td class="column_company_id">  {{ $row->company->currentDescription->title ?? '' }} </td>
                                        <td class="column_budget">  {{ $row->budget }} </td>
                                        <td class="column_avg_stand_annual">  {{ $row->avg_stand_annual }} </td>
                                        <td class="column_avg_events_annual">  {{ $row->avg_events_annual }} </td>
                                        <td class="column_company_website">  {{ $row->company_website }} </td>
                                        <td class="column_role">  {{ $row->role }} </td>
                                        <td class="column_note">  {{ limitString($row->note) }} </td>
                                        <td colspan="2" class="column_created_at"> {{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }} </td>
                                        <td>
                                            <div class="dropdown">
                                                <button class="btn bg-transparent border-0 p-0 dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
                                                    <i class="fas fa-ellipsis"></i>
                                                </button>
                                                <ul class="dropdown-menu">
                                                    @if(auth()->user()->canAccess('daily_logs','index'))
                                                        <a href="{{ route('daily_logs.index', [
                                                                    'contact_list' => $row->title,
                                                                    ])
                                                                }}"
                                                           class="dropdown-item" title="{{ __('daily_logs.head') }}"> <i class="bi bi-pen ml-1"></i> {{ __('daily_logs.head') }} </a>
                                                    @endif
                                                    @if(auth()->user()->canAccess('contact_lists','update') && $row->lock == 0)
                                                        <a href="#0" onclick="openModel(this)" action="{{ route ('contact_lists.edit', $row->id) }}" class="dropdown-item" title="{{ __('dashboard.edit') }}"> <i class="bi bi-pen ml-1"></i> {{ __('dashboard.edit') }} </a>
                                                    @endif
                                                    @if($row->lock)
                                                        <a href="{{ route('contact_lists.lock', $row->id) }}"
                                                           class="dropdown-item"
                                                           title="{{ __('dashboard.unlock') }}">
                                                            <i class="bi bi-unlock-fill"></i>
                                                            {{ __('dashboard.unlock') }}
                                                        </a>
                                                    @else
                                                        <a href="{{ route('contact_lists.lock', $row->id) }}"
                                                           class="dropdown-item"
                                                           title="{{ __('dashboard.lock') }}">
                                                            <i class="bi bi-lock-fill"></i>
                                                            {{ __('dashboard.lock') }}
                                                        </a>
                                                    @endif
                                                    @if(auth()->user()->canAccess('contact_lists','delete'))
                                                            @if($row->deleted_at ?? null)
                                                                <a href="{{ route ('contact_lists.restore', $row->id) }}" data-method="put" class="dropdown-item rowAction" title="{{ __('dashboard.restore') }}"> <i class="bi bi-pen ml-1"></i> {{ __('dashboard.restore') }} </a>
                                                            @else
                                                                <a href="{{ route ('contact_lists.destroy', $row->id) }}" data-method="delete" class="dropdown-item rowAction" title="{{ __('dashboard.trash') }}"> <i class="bi bi-slash-circle ml-1"></i> {{ __('dashboard.trash') }} </a>
                                                            @endif
                                                    @endif
                                                </ul>
                                            </div>
                                        </td>
                                </tr>
                                @endforeach

                                @if( count( $contact_lists ) && $contact_lists->hasPages() )
                                    <tr> <td> {{ $contact_lists->links() }} </td> </tr>
                                @endif
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="{{url('')}}/assets/admin/js/related.js"></script>
