@extends('backend.layouts.layout-2') @if($edit) @section('page-title', trans('app.edit_city')) @section('page-heading', trans('app.edit_city')) @else @section('page-title', trans('app.add_city')) @section('page-heading', trans('app.add_city')) @endif @section('styles') @parent @endsection @section('scripts') @parent @endsection @section('content') @if($edit) {!! Form::open(['route' => ['cities.update',$city->id], 'method' => 'PUT','files' => true, 'id' => 'city-form']) !!} @else {!! Form::open(['route' => 'cities.store', 'files' => true, 'id' => 'city-form']) !!} @endif
@lang('app.city_details')
{!! Form::text('name',$edit ? $city->name : old('name'),['class' => 'form-control','placeholder' => trans('app.name')]) !!}
{!! Form::close() !!} @stop