@extends('layouts.app') @section('page-title', 'Countries') @section('content')
Reset
@if($countries->total() > 0)

Showing {{ $countries->firstItem() }}-{{ $countries->lastItem() }} of {{ $countries->total() }} countries

@endif
@if($countries->count())
@foreach($countries as $country) @endforeach
Country ISO Code Status

{{ $country->name }}

{{ $country->iso2 }}
{{ $countries->appends(request()->query())->links() }}
@else

{{ array_filter($filters ?? []) ? 'No matching countries' : 'No countries found' }}

{{ array_filter($filters ?? []) ? 'Try adjusting your search or filter criteria.' : 'Run the country seeder to populate countries.' }}

@endif
@endsection