@extends('user::layouts.master') @section('content')

Manage Profile

@include('layouts.flash.alert')
{{ Form::open([ 'route' => ['suppliers.update.profile', $supplier->id], 'method' => 'patch', 'enctype'=> 'multipart/form-data']) }}

Profile

{{ Form::label('supplier_name', 'Supplier name') }}* {{ Form::text('supplier_name', old('supplier_name') ? old('supplier_name') : $supplier->supplier_name, [ 'class' => "form-control supplier_name", 'id' => "supplier_name", ]) }} @if($errors->has('supplier_name')) {{ $errors->first('supplier_name') }} @endif
{{ Form::label('supplier_contact_name', 'Supplier contact name') }}* {{ Form::text('supplier_contact_name', old('supplier_contact_name') ? old('supplier_contact_name') : $supplier->supplier_contact_name, [ 'class' => "form-control supplier_contact_name", 'id' => "supplier_contact_name", ]) }} @if($errors->has('supplier_contact_name')) {{ $errors->first('supplier_contact_name') }} @endif
{{ Form::label('full_name', 'Full name') }}* {{ Form::text('full_name', old('full_name') ? old('full_name') : $supplier->full_name, [ 'class' => "form-control full_name", 'id' => "full_name", ]) }} @if($errors->has('full_name')) {{ $errors->first('full_name') }} @endif
{{ Form::label('email', 'Email') }}* {{ Form::text('email', old('email') ? old('email') : $supplier->email, [ 'class' => "form-control email", 'id' => "email", 'readonly'=> 'readonly' ]) }} @if($errors->has('email')) {{ $errors->first('email') }} @endif
{{ Form::label('address_line1', 'Address line1') }} {{ Form::text('address_line1', old('address_line1') ? old('address_line1') : $supplier->address_line1, [ 'class' => "form-control address_line1", 'id' => "address_line1", ]) }} @if($errors->has('address_line1')) {{ $errors->first('address_line1') }} @endif
{{ Form::label('address_line2', 'Address line2') }} {{ Form::text('address_line2', old('address_line2') ? old('address_line2') : $supplier->address_line2, [ 'class' => "form-control address_line2", 'id' => "address_line2", ]) }} @if($errors->has('address_line2')) {{ $errors->first('address_line2') }} @endif
{{ Form::label('phone', 'Phone') }}* {{ Form::text('phone', old('phone') ? old('phone') : $supplier->phone, [ 'class' => "form-control phone", 'id' => "phone" ]) }} @if($errors->has('phone')) {{ $errors->first('phone') }} @endif
{{ Form::label('fax', 'Fax') }} {{ Form::text('fax', old('fax') ? old('fax') : $supplier->fax, [ 'class' => "form-control fax", 'id' => "fax", ]) }} @if($errors->has('fax')) {{ $errors->first('fax') }} @endif
{{ Form::label('suburb', 'Town') }} {{ Form::text('suburb', old('suburb') ? old('suburb') : $supplier->suburb, [ 'class' => "form-control suburb", 'id' => "suburb", ]) }} @if($errors->has('suburb')) {{ $errors->first('suburb') }} @endif
{{ Form::label('postcode', 'Post code') }} {{ Form::text('postcode', old('postcode') ? old('postcode') : $supplier->postcode, [ 'class' => "form-control postcode", 'id' => "postcode", ]) }} @if($errors->has('postcode')) {{ $errors->first('postcode') }} @endif
{{ Form::label('file', 'Avatar') }} {{ Form::file('file', [ 'class' => "form-control file", 'id' => "file", ]) }} @if($errors->has('file')) {{ $errors->first('file') }} @endif
{{ Form::close() }}
@stop