@extends('admin.layouts.modal') @section('content') @if (isset($status))
@endif

@if (isset($account) && $account->id) Edit @else Create @endif account

{!! Form::model($account, ['method' => isset($account) && $account->id ? 'put' : 'post']) !!} @if (count($errors) > 0)
There were some problems adding account.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{!! Form::label('name', 'Name') !!} {!! Form::text('name', isset($account) && $account->name ? $account->name : old('name'), ['class' => 'form-control', 'id' => 'name']) !!}
{!! Form::label('description', 'Description') !!} {!! Form::text('description', isset($account) && $account->description ? $account->description : old('description'), ['class' => 'form-control', 'id' => 'description']) !!}
{!! Form::close() !!}

@stop @section('scripts') @stop