@extends('admin.layouts.app')
@section('container', 'dashboard-container-sm')
@section('section', d_trans('Settings'))
@section('title', d_trans('Countries'))
@section('header_title', d_trans('Edit Country'))
@section('back', route('admin.settings.countries.index'))
@section('form', true)
@section('content')
    <form id="submittedForm" action="{{ route('admin.settings.countries.update', $country->id) }}" method="POST">
        @csrf
        @method('PUT')
        <div class="card p-2">
            <div class="card-body">
                <div class="row g-3 row-cols-1 mb-2">
                    <div class="col">
                        <label class="form-label">{{ d_trans('Name') }} </label>
                        <input type="text" name="name" class="form-control form-control-md" value="{{ $country->name }}"
                            required />
                    </div>
                    <div class="col">
                        <label class="form-label">{{ d_trans('Code') }} </label>
                        <input type="text" name="code" class="form-control form-control-md" min="1"
                            max="5" value="{{ $country->code }}" required />
                    </div>
                </div>
            </div>
        </div>
    </form>
@endsection
