@extends('layouts/default') {{-- Page title --}} @section('title') @if ($supplier->id) {{ trans('admin/suppliers/table.update') }} @else {{ trans('admin/suppliers/table.create') }} @endif @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
{{ Form::open(['method' => 'POST', 'files' => true, 'class' => 'form-horizontal', 'autocomplete' => 'off' ]) }} {{ Form::token() }}
@if ($supplier->id)

{{ $supplier->name }}

@endif
{{ Form::label('name', trans('admin/suppliers/table.name'), array('class' => 'col-md-3 control-label')) }}
{{ Form::text('name', Input::old('name', $supplier->name), array('class' => 'form-control')) }} {!! $errors->first('name', ' :message') !!}
{{ Form::label('address', trans('admin/suppliers/table.address'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('address', Input::old('address', $supplier->address), array('class' => 'form-control')) }} {!! $errors->first('address', ' :message') !!}
{{ Form::label('address2', ' ', array('class' => 'col-md-3 control-label')) }}
{{Form::text('address2', Input::old('address2', $supplier->address2), array('class' => 'form-control')) }} {!! $errors->first('address2', ' :message') !!}
{{ Form::label('city', trans('admin/suppliers/table.city'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('city', Input::old('city', $supplier->city), array('class' => 'form-control')) }} {!! $errors->first('city', ' :message') !!}
{{ Form::label('state', trans('admin/suppliers/table.state'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('state', Input::old('state', $supplier->state), array('class' => 'form-control')) }} {!! $errors->first('state', ' :message') !!}
{{ Form::label('country', trans('admin/suppliers/table.country'), array('class' => 'col-md-3 control-label')) }}
{!! Form::countries('country', Input::old('country', $supplier->country), 'select2') !!} {!! $errors->first('country', ' :message') !!}
{{ Form::label('zip', trans('admin/suppliers/table.zip'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('zip', Input::old('zip', $supplier->zip), array('class' => 'form-control')) }} {!! $errors->first('zip', ' :message') !!}
{{ Form::label('contact', trans('admin/suppliers/table.contact'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('contact', Input::old('contact', $supplier->contact), array('class' => 'form-control')) }} {!! $errors->first('contact', ' :message') !!}
{{ Form::label('phone', trans('admin/suppliers/table.phone'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('phone', Input::old('phone', $supplier->phone), array('class' => 'form-control')) }} {!! $errors->first('phone', ' :message') !!}
{{ Form::label('fax', trans('admin/suppliers/table.fax'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('fax', Input::old('fax', $supplier->fax), array('class' => 'form-control')) }} {!! $errors->first('fax', ' :message') !!}
{{ Form::label('email', trans('admin/suppliers/table.email'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('email', Input::old('email', $supplier->email), array('class' => 'form-control')) }} {!! $errors->first('email', ' :message') !!}
{{ Form::label('url', trans('admin/suppliers/table.url'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('url', Input::old('url', $supplier->url), array('class' => 'form-control')) }} {!! $errors->first('url', ' :message') !!}
{{ Form::label('notes', trans('admin/suppliers/table.notes'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('notes', Input::old('notes', $supplier->notes), array('class' => 'form-control')) }} {!! $errors->first('notes', ' :message') !!}
@if ($supplier->image)
{{ Form::checkbox('image_delete') }} {!! $errors->first('image_delete', ':message') !!}
@endif
{{ Form::file('image') }} {!! $errors->first('image', ':message') !!}
@stop