@extends('layouts/edit-form', [ 'createText' => trans('admin/suppliers/table.create') , 'updateText' => trans('admin/suppliers/table.update'), 'helpTitle' => trans('admin/suppliers/table.about_suppliers_title'), 'helpText' => trans('admin/suppliers/table.about_suppliers_text'), 'formAction' => ($item) ? route('suppliers.update', ['supplier' => $item->id]) : route('suppliers.store'), ]) {{-- Page content --}} @section('inputFields') @include ('partials.forms.edit.name', ['translated_name' => trans('admin/suppliers/table.name')]) @include ('partials.forms.edit.address')
{{ Form::label('contact', trans('admin/suppliers/table.contact'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('contact', Input::old('contact', $item->contact), array('class' => 'form-control')) }} {!! $errors->first('contact', ' :message') !!}
@include ('partials.forms.edit.phone')
{{ Form::label('fax', trans('admin/suppliers/table.fax'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('fax', Input::old('fax', $item->fax), array('class' => 'form-control')) }} {!! $errors->first('fax', ' :message') !!}
@include ('partials.forms.edit.email')
{{ Form::label('url', trans('admin/suppliers/table.url'), array('class' => 'col-md-3 control-label')) }}
{{Form::text('url', Input::old('url', $item->url), array('class' => 'form-control')) }} {!! $errors->first('url', ' :message') !!}
@include ('partials.forms.edit.notes') @if ($item->image)
{{ Form::checkbox('image_delete') }} {!! $errors->first('image_delete', ':message') !!}
@endif

Accepted filetypes are jpg, png, gif and svg

{!! $errors->first('image', ':message') !!}
@stop