@extends('layouts.admin') @section('breadcrumb') @endsection @section('content')
{{ tr($type) }}({{ $total ?: 0 }})
@if ($type === 'supported_countries') @endif @if ($type === 'mobile_country_codes') @endif @if ($type === 'states') @endif @if ($type === 'service_banks') @endif @if ($type === 'cities') @endif
@include('admin.universals.search')
@foreach ($columns as $col) @endforeach @forelse($items as $key => $item) @foreach ($columns as $col) @endforeach @empty @endforelse
{{ tr('s_no') }}{{ tr($col) }}{{ tr('status') }} {{ tr('created_at') }} {{ tr('updated_at') }} {{ tr('action') }}
{{ $items->firstItem() + $key }}{{ $item->$col ?: tr('na') }}
@csrf
status ? 'checked' : '' }} onchange="document.getElementById('toggle-form-{{ $item->id }}').submit();">
{{ $item->created_at ? common_date($item->created_at, auth('admin')->user()->timezone ?: DEFAULT_TIMEZONE, 'd M Y h:i:s A') : tr('na') }} {{ $item->updated_at ? common_date($item->updated_at, auth('admin')->user()->timezone ?: DEFAULT_TIMEZONE, 'd M Y h:i:s A') : tr('na') }} @if ($type === 'supported_countries') {{ tr('edit') }} @elseif ($type === 'mobile_country_codes') {{ tr('edit') }} @elseif ($type === 'states') {{ tr('edit') }} @elseif($type == 'service_banks') {{ tr('edit') }} @elseif($type == 'cities') {{ tr('edit') }} @endif
{{ tr('no_data_found') }}
{{ $items->withQueryString()->links('pagination::bootstrap-4') }}
@endsection