@extends('layouts.master-voyo') @section('header') @stop @section('content')

{{ trans('site.Dashboard') }}

@include('components.userstatus',[ 'type' =>'alert-warning' ])
@include('page_info')
@include('member._partials.sidebar')
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{!! Form::model($member->MemberBilling, ['method' => 'PATCH', 'action' => ['MemberController@updateBilling'], 'class' => 'form-horizontal', 'id' => 'billingForm', 'files' => true]) !!}

{{ trans('dashboard.Billing_Address') }}

{!! Form::text('block',null, ['class' => 'form-control', 'id' => 'b_block']) !!}
{!! Form::text('street',null, ['class' => 'form-control', 'id' => 'b_street']) !!}
{!! Form::text('unit',null, ['class' => 'form-control', 'id' => 'b_unit']) !!}
{!! Form::text('building',null, ['class' => 'form-control', 'id' => 'b_building']) !!}
{{-- billing country --}} {!! Form::select('country', $countries, $member->MemberBilling ? $member->MemberBilling->country : 193, ['class' => 'chosen-select selectcategory form-control', 'id' => 'b_country', 'data-placeholder' => 'Choose a Country...']) !!}
{!! Form::text('city', null, ['class' => 'form-control', 'id' => 'b_city']) !!}
{!! Form::text('state',null, ['class' => 'form-control', 'id' => 'b_state']) !!}
{!! Form::text('postal',null, ['class' => 'form-control', 'id' => 'b_postal']) !!}
{!! Form::close() !!}

{{ trans('dashboard.Delivery_Address') }} {{-- # Hide temporary --}} {{-- --}}

@if(count($member->MemberShipping)>0) @foreach($member->MemberShipping as $key => $shipping) {!! Form::model($shipping, ['method' => 'PATCH', 'action' => ['MemberController@updateShipping',$shipping->id], 'class' => 'form-horizontal delivery', 'id' => 'shippingForm', 'files' => true]) !!}
{{-- # hide temporary --}} {{-- --}}
{!! Form::text('block', $shipping->block , ['class' => 'form-control s_block', 'id' => 's_block_1']) !!}
{!! Form::text('street',$shipping->street, ['class' => 'form-control s_street', 'id' => 's_street_1']) !!}
{!! Form::text('unit',$shipping->unit , ['class' => 'form-control s_unit', 'id' => 's_unit_1']) !!}
{!! Form::text('building',$shipping->building , ['class' => 'form-control s_building', 'id' => 's_building_1']) !!}
{!! Form::text('postal', $shipping->postal, ['class' => 'form-control', 'id' => 's_postal_1']) !!}
{{-- billing country --}} {!! Form::select('country', $countries, $shipping->country , ['class' => 'chosen-select selectcategory form-control s_country', 'id' => 's_country_1', 'data-placeholder' => 'Choose a Country...']) !!}
{!! Form::text('state',$shipping->state, ['class' => 'form-control s_state', 'id' => 's_state_1']) !!}
{!! Form::text('city',$shipping->city , ['class' => 'form-control s_city', 'id' => 's_city_1']) !!}
{!! Form::text('delivery_name',$shipping->delivery_name, ['class' => 'form-control s_delivery_name', 'id' => 's_delivery_name_1']) !!}
{!! Form::text('delivery_contact',$shipping->delivery_contact, ['class' => 'form-control s_delivery_contact', 'id' => 's_delivery_contact_1']) !!}
{{ trans('dashboard.Set_Default_Address') }} @if( $member->MemberShipping->count() > 1 ) {{ trans('dashboard.Remove') }} @endif
{!! Form::close() !!} @endforeach @else {!! Form::open(['method' => 'POST', 'action' => ['MemberController@storeShipping'], 'class' => 'form-horizontal', 'id' => 'shippingNewForm', 'files' => true]) !!}
{!! Form::text('block',null , ['class' => 'form-control s_block', 'id' => 's_block_1']) !!}
{!! Form::text('street',null, ['class' => 'form-control s_street', 'id' => 's_street_1']) !!}
{!! Form::text('unit',null , ['class' => 'form-control s_unit', 'id' => 's_unit_1']) !!}
{!! Form::text('building',null, ['class' => 'form-control s_building', 'id' => 's_building_1']) !!}
{!! Form::text('postal',null, ['class' => 'form-control s_postal', 'id' => 's_postal_1']) !!}
{{-- billing country --}} {!! Form::select('country', $countries,193, ['class' => 'chosen-select selectcategory form-control s_country', 'id' => 's_country_1', 'data-placeholder' => 'Choose a Country...']) !!}
{!! Form::text('state',null, ['class' => 'form-control s_state', 'id' => 's_state_1']) !!}
{!! Form::text('city',null , ['class' => 'form-control s_city', 'id' => 's_city_1']) !!}
{!! Form::text('delivery_name',null, ['class' => 'form-control s_delivery_name', 'id' => 's_delivery_name_1']) !!}
{!! Form::text('delivery_contact',null, ['class' => 'form-control s_delivery_contact', 'id' => 's_delivery_contact_1']) !!}
{!! Form::close() !!} @endif
@include('site.bottom-menu') @stop @section('footer') @stop