@extends('admin.layout') @section('content')

{{ translate('Countries') }}

@foreach ($countries as $key => $country) @endforeach
#
{{ translate('Title') }} {{ translate('Code') }} {{ translate('Logo') }} {{ translate('Active') }} {{ translate('Options') }}
{{ $key + 1 + ($countries->currentPage() - 1) * $countries->perPage() }} {{ $country->getTranslation('title') }} {{ $country->code }} @php if ($country->logo) { $link = $country->logo; } else { $link = '/images/noimg.png'; } @endphp
{{ $countries->links() }}

{{ translate('Add country.') }}

{!! Form::open(['method' => 'post', 'action' => 'Admin\CountryController@store', 'files' => true]) !!}
@error('logo')
{{ $message }}
@enderror
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => translate('Title')]) !!}
@error('title')
{{ $message }}
@enderror
{!! Form::text('code', null, ['class' => 'form-control', 'placeholder' => translate('Code')]) !!}
@error('code')
{{ $message }}
@enderror
{!! Form::checkbox('active', null, 1, ['id' => 'Checkbox_1']) !!}
{!! Form::Close() !!}
@endsection @section('modal') @endsection @section('script') @endsection