@extends('layouts.admin') @section('content')
{{--
--}} @if(isset($country))
Edit Country
{!! Form::model($country, ['method' => 'PATCH', 'route' => ['admin.country.update', $country->id]]) !!} @else
Add Country
{!! Form::open(['method' => 'POST', 'route' => 'admin.country.store']) !!} @endif
{!! Form::label('country', 'Country Title*') !!} - Like USA,IND {!! Form::text('country', null, ['class' => 'form-control','placeholder' => 'Please enter 3 name country code Like USA,IND','required']) !!} {{ $errors->first('country') }}
@if(isset($country)) @else {{-- --}} {{-- --}} @endif
{!! Form::close() !!}
@if(isset($all_countries))
All Country
@foreach($all_countries as $key => $country) @php $iso3 = $country->country; $country_name = DB::table('all_countries')->where('iso3',$iso3)->first(); @endphp @endforeach
ID Country Name ISO Code 2 ISO Code 3 Action
{{$key+1}} {{$country_name ? $country_name->nicename : ''}} {{$country_name ? $country_name->iso : ''}} {{$country_name ? $country_name->iso3 : ''}}
@can('location_edit') @endcan @can('location_delete') @endcan
@endif
@endsection @section('scripts') @endsection