@extends('panel.layouts.layout')
@section('content')
        <!-- =====================================
            ==== Start settings  -->
            <br>
            <section class="settings">
                <div class="container-fluid">
                 <div class="row">
                    <div class="col-md-11">
                        <div class="wel-text">
                            <div class="path">
                             <ul>
                                <a href="{{ url('admin/home') }}">@lang('home.home')</a>
                                <span>/</span>
                                <a href="{{ URL::to('admin/countries') }}"><i class="icon-home2 position-left"></i> @lang('home.countries')</a>
                                <span>/</span>
                                @lang('home.update_info')
                            </ul>
                        </div>
                    </div>
                </div>

                <div class="col-md-1">
                    <div class="dropdown">
                      <button class="btn btn-defualt dropdown-toggle" type="button" data-toggle="dropdown">@lang('home.links')
                          <span class="caret"></span></button>
                          <ul class="dropdown-menu" style="padding: 10px">
                            <li  style="padding: 10px"><a href="{{ URL::to('ar/admin/setting') }}"><i class="icon-gear"></i>@lang('home.general_settings')</a></li>
                            <li  style="padding: 5px"><a href="{{ URL::to('ar/admin/reports_browsing') }}"><i class="icon-copy"></i> @lang('home.full_report')</a></li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-lg-12 col-md-6">
                    <div class="item">
                        <div class="head">
                            <h5> @lang('home.update_info')</h5>
                        </div>
                        <form class="form-horizontal form-validate-jquery" method="post" action="{{ @route('countries.update',$country) }}" enctype='multipart/form-data'  >
                            <input name="_method" type="hidden" value="PUT">
                            <input name="use" type="hidden" value="{{@$country->id}}">

                                @if ($errors->any())
                                @foreach ($errors->all() as $error)
                                <div class="alert alert-danger alert-dismissible">
                                    <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>{{ $error }}
                                </div>
                                @endforeach
                                @endif
                                @if(Session::has('success'))
                                <div class="alert alert-success alert-dismissible">
                                    <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>{{ Session::get('success') }}
                                </div>
                                @endif
                                @csrf

                            @include('panel.countries.form')

                            <button type="submit" class="btn btn-primary">@lang('home.save') <i class="icon-arrow-left13 position-right"></i></button>

                        </form>
                    </div>
                </div>
                
            </div>
        </div>
    </section>

@stop
