@extends('app') @section('content') {{--code--}}

{{$city ? 'تصحيح' : 'إضافة'}} مدينة


@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif {!! Form::model($city, ['method' => $city ? 'PATCH' : 'POST','route' => $city ? ['admin.cities.update', $city->id] : 'admin.cities.store','id'=>'form_cities']) !!}
{!! Form::select('country_id', [''=>'اختر البلد (عربي)']+$countries->toArray(),$city ? $city->country_id : '', ['class' => 'selectbox','required'=>true,'dir'=>"rtl"]) !!}
{!! Form::text('name', null, ['class' => 'form-control','required'=>true]) !!}
إلغاء
{!! Form::submit($city ? 'تحديث' : 'حفظ', ['class' => 'btn btn-primary btn-cons','id' => 'btn-submit']) !!}
{!! Form::close() !!}
@endsection @section('page_script') @endsection