@extends('adminlte::page') @section('title', $pageTitle) @section('content_header')

{{ $pageTitle }}

@stop @section('content')
@if(!is_null($row['id'])) {!! Form::model($address, ['method' => 'PATCH','url' => ['addresses', $address->id]]) !!} {!! Form::hidden('id', $row['id']) !!} @else {!! Form::open(['route' => 'addresses.store']) !!} @endif {{--
{!! Form::label('label', SiteHelpers::activeLang('Label', (isset($fields['label']['language'])? $fields['label']['language'] : array())))!!} {!! Form::text('label', $row['label'],array('class'=>'form-control', 'placeholder'=>'')) !!}
--}}
{!! Form::label('label', SiteHelpers::activeLang('First Name', (isset($fields['first_name']['language'])? $fields['first_name']['language'] : array())))!!} {!! Form::text('first_name', $row['first_name'],array('class'=>'form-control', 'placeholder'=>'', )) !!} @if($errors->inline->has('first_name')) {{ $errors->inline->first('first_name') }} @endif
{!! Form::label('label', SiteHelpers::activeLang('Last Name', (isset($fields['last_name']['language'])? $fields['last_name']['language'] : array())))!!} {!! Form::text('last_name', $row['last_name'],array('class'=>'form-control', 'placeholder'=>'', )) !!} @if($errors->inline->has('last_name')) {{ $errors->inline->first('last_name') }} @endif
{!! Form::label('label', SiteHelpers::activeLang('Company', (isset($fields['company']['language'])? $fields['company']['language'] : array())))!!} {!! Form::text('company', $row['company'],array('class'=>'form-control', 'placeholder'=>'', )) !!}
{!! Form::label('label', SiteHelpers::activeLang('Address 1', (isset($fields['address_1']['language'])? $fields['address_1']['language'] : array())))!!} {!! Form::text('address_1', $row['address_1'],array('class'=>'form-control', 'placeholder'=>'', )) !!} @if($errors->inline->has('address_1')) {{ $errors->inline->first('address_1') }} @endif
{!! Form::label('label', SiteHelpers::activeLang('Address 2', (isset($fields['address_2']['language'])? $fields['address_2']['language'] : array())))!!} {!! Form::text('address_2', $row['address_2'],array('class'=>'form-control', 'placeholder'=>'', )) !!}
{!! Form::label('label', SiteHelpers::activeLang('City', (isset($fields['city']['language'])? $fields['city']['language'] : array())))!!} {!! Form::text('city', $row['city'],array('class'=>'form-control', 'placeholder'=>'', )) !!} @if($errors->inline->has('city')) {{ $errors->inline->first('city') }} @endif
{!! Form::label('label', SiteHelpers::activeLang('State', (isset($fields['state']['language'])? $fields['state']['language'] : array())))!!} {!! Form::text('state', $row['state'],array('class'=>'form-control', 'placeholder'=>'', )) !!} @if($errors->inline->has('state')) {{ $errors->inline->first('state') }} @endif
{!! Form::label('label', SiteHelpers::activeLang('Zip', (isset($fields['zip']['language'])? $fields['zip']['language'] : array())))!!} {!! Form::text('zip', $row['zip'],array('class'=>'form-control', 'placeholder'=>'', )) !!} @if($errors->inline->has('zip')) {{ $errors->inline->first('zip') }} @endif
{!! Form::label('label', SiteHelpers::activeLang('Phone', (isset($fields['phone']['language'])? $fields['phone']['language'] : array())))!!} {!! Form::text('phone', $row['phone'],array('class'=>'form-control', 'placeholder'=>'', )) !!} @if($errors->inline->has('phone')) {{ $errors->inline->first('phone') }} @endif
{!! Form::label('label', SiteHelpers::activeLang('Country', (isset($fields['country']['language'])? $fields['country']['language'] : array())))!!} {!! Form::select('country',$countries,isset($row['country']) ? $row['country'] : 'US',array('class'=>'form-control', 'placeholder'=>'')) !!} @if($errors->inline->has('country')) {{ $errors->inline->first('country') }} @endif
{!! Form::close() !!}
@stop