@include('partials.title-pad', [
'title' => __('labels.country_list_heading'),
'search' => $search,
'searchPlaceholder' => __('placeholders.search', ['static' => __('static.country')]),
'list' => $countries,
'export' => 'masters.countries.export',
])
{{ __('datatable.id') }} |
{{ __('datatable.name') }} |
{{ __('datatable.nationality') }} |
{{ __('datatable.phone_code') }} |
@php
$startingIndex = ($countries->currentPage() - 1) * $countries->perPage() + 1;
@endphp
@forelse ($countries as $key => $country)
{{ $startingIndex + $key }} |
{{ $country->name }} |
{{ $country->nationality }} |
+ {{ $country->phone_code }} |
@empty
{{ __('labels.no_records_found') }}
|
@endforelse
{{-- Pagination --}}
{{ $countries->links('partials.pagination') }}
{{-- Pagination End --}}
@section('scripts')
@endsection
@endsection