<form action="{{route('admin.country.update',['id'=>$country])}}" method="post" enctype="multipart/form-data" class="form-validate form">
    @csrf
    <div class="mb-2">
        <label for="name" class="form-label"> {{ __('country_name') }} <span
                class="text-danger">*</span> </label>
        <input type="text" class="form-control rounded-2" id="name" name="name" value="{{ $country->name }}" placeholder="{{ __('country_name') }}">
        <div class="nk-block-des text-danger">
            <p class="error">{{ $errors->first('name') }}</p>
        </div>
    </div>
    <div class="mb-4">
        <label for="description" class="form-label"> {{ __('country_description') }} </label>
        <textarea name="description" id="description" cols="30" rows="4" class="form-control rounded-2"
            placeholder="{{ __('country_description') }}">{{ $country->description }}</textarea>
        <div class="nk-block-des text-danger">
            <p class="error">{{ $errors->first('description') }}</p>
        </div>
    </div>
  

    <div class="d-flex gap-12 align-items-center justify-content-between sandbox_mode_div mb-4">
        <input type="hidden" name="status" value="{{$country->status}}">
        <label class="form-label" for="status"> {{__('country_status')}} </label>
        <div class="setting-check">
            <input type="checkbox" value="1" id="status" {{$country->status == 1 ? 'checked':''}} class="sandbox_mode">
            <label for="status"></label>
        </div>
    </div>
    
    <button type="submit" class="btn sg-btn-primary">{{ __('submit') }}</button>
    @include('layouts.loading_button',['class' => 'btn sg-btn-primary'])
</form>