@extends('layouts.app') @section('content')
@include('layouts.includes.header')

Business Details

Address Details

{!! Form::open(array('url'=>'company/address_save')) !!} {{ csrf_field() }}

Billing Address

{!! Form::label('billing_address1', 'Address Line 1', array('class' => 'required')) !!} {!! Form::text('billing_address1', isset($address->billing_address) != '' ? $address->billing_address : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 1']) !!} @if ($errors->has('billing_address1')) {{ $errors->first('billing_address1') }} @endif
{!! Form::label('billing_address2', 'Address Line 2') !!} {!! Form::text('billing_address2', isset($address->billing_address_two) != '' ? $address->billing_address_two : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 2']) !!}
{!! Form::label('billing_zipcode', 'Zipcode', array('class' => 'required')) !!} {!! Form::text('billing_zipcode', isset($address->billing_zipcode) != '' ? $address->billing_zipcode : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Zipcode']) !!} @if ($errors->has('billing_zipcode')) {{ $errors->first('billing_zipcode') }} @endif
{!! Form::label('billing_city', 'City', array('class' => 'required')) !!} {!! Form::text('billing_city', isset($address->billing_city) != '' ? $address->billing_city : NUll, ['class' => 'form-control rounded', 'placeholder'=>'City']) !!} @if ($errors->has('billing_city')) {{ $errors->first('billing_city') }} @endif
@if(isset($address->billing_state)) @php $billing_state = $address->billing_state; @endphp @else @php $billing_state = ''; @endphp @endif {!! Form::label('billing_state', 'State', array('class' => 'required')) !!} @if ($errors->has('billing_state')) {{ $errors->first('billing_state') }} @endif
{!! Form::label('billing_phone', 'Phone', array('class' => 'required')) !!} {!! Form::number('billing_phone', isset($address->billing_contact) != '' ? $address->billing_contact : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Mobile Number']) !!} @if ($errors->has('billing_phone')) {{ $errors->first('billing_phone') }} @endif

Shipping Address

{!! Form::label('shipping_address1', 'Address Line 1', array('class' => 'required')) !!} {!! Form::text('shipping_address1', isset($address->shipping_address) != '' ? $address->shipping_address : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 1']) !!} @if ($errors->has('shipping_address1')) {{ $errors->first('shipping_address1') }} @endif
{!! Form::label('shipping_address2', 'Address Line 2') !!} {!! Form::text('shipping_address2', isset($address->shipping_address_two) != '' ? $address['shipping_address_two'] : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Address Line 2']) !!}
{!! Form::label('shipping_zipcode', 'Zipcode', array('class' => 'required')) !!} {!! Form::text('shipping_zipcode', isset($address->shipping_zipcode) != '' ? $address->shipping_zipcode : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Zipcode']) !!} @if ($errors->has('shipping_zipcode')) {{ $errors->first('shipping_zipcode') }} @endif
{!! Form::label('shipping_city', 'City', array('class' => 'required')) !!} {!! Form::text('shipping_city', isset($address->shipping_city) != '' ? $address->shipping_city : NUll, ['class' => 'form-control rounded', 'placeholder'=>'City']) !!} @if ($errors->has('shipping_city')) {{ $errors->first('shipping_city') }} @endif
@if(isset($address->billing_state)) @php $shipping_state = $address->shipping_state; @endphp @else @php $shipping_state = ''; @endphp @endif {!! Form::label('shipping_state', 'State', array('class' => 'required')) !!} @if ($errors->has('shipping_state')) {{ $errors->first('shipping_state') }} @endif
{!! Form::label('shipping_phone', 'Phone', array('class' => 'required')) !!} {!! Form::number('shipping_phone',isset($address->shipping_contact) != '' ? $address->shipping_contact : NUll, ['class' => 'form-control rounded', 'placeholder'=>'Mobile Number']) !!} @if ($errors->has('shipping_phone')) {{ $errors->first('shipping_phone') }} @endif
{!! Form::close() !!}
@endsection