@extends('layouts.guest') @section('title', 'My Addresses')

@lang('pages.my_address')

@include('layouts.template.profileDashboard')
@foreach ($userAddresss as $k=> $address )

  • {{$address->first_name.' '.$address->last_name}}
  • {{$address->house_no}}
  • {{$address->contact_no}}
  • {{$address->appartment}}
  • {{$address->landmark}}
  • {{$address->pincode}}
  • {{$address->address_type}}
  • {{$address->governorate}}
  • {{$address->area}}
  • {{$address->address}}
{{ Form::model($address, array('route'=>array('updateAddress', $address->id),'id'=>"addressForm$address->id",'method' => 'POST','files'=>true)) }} @csrf
{{ Form::text('first_name', $address->first_name, array('id'=>'first_name','class' => "form-control ".APFrmErrHelp::hasError($errors, 'first_name')." ",'placeholder' => 'First name')) }} {!! APFrmErrHelp::showErrors($errors, 'first_name') !!}
{{ Form::text('last_name', $address->last_name, array('id'=>'last_name','class' => "form-control ".APFrmErrHelp::hasError($errors, 'last_name')." ",'placeholder' => 'Last name')) }} {!! APFrmErrHelp::showErrors($errors, 'last_name') !!}
{{ Form::text('house_no', $address->house_no, array('id'=>'house_no','class' => "form-control ".APFrmErrHelp::hasError($errors, 'house_no')." ",'placeholder' => 'House No.')) }} {!! APFrmErrHelp::showErrors($errors, 'house_no') !!}
{{ Form::text('contact_no', $address->contact_no, array('id'=>'contact_no','class' => "form-control ".APFrmErrHelp::hasError($errors, 'contact_no')." ",'placeholder' => 'Contact No.')) }} {!! APFrmErrHelp::showErrors($errors, 'contact_no') !!}
{{ Form::text('appartment', $address->appartment, array('id'=>'appartment','class' => "form-control ".APFrmErrHelp::hasError($errors, 'appartment')." ",'placeholder' => 'Appartment')) }} {!! APFrmErrHelp::showErrors($errors, 'appartment') !!}
{{ Form::text('landmark', $address->landmark, array('id'=>'landmark','class' => "form-control ".APFrmErrHelp::hasError($errors, 'landmark')." ",'placeholder' => 'Landmark')) }} {!! APFrmErrHelp::showErrors($errors, 'landmark') !!}
{{ Form::text('pincode', $address->pincode, array('id'=>'pincode','class' => "form-control ".APFrmErrHelp::hasError($errors, 'pincode')." ",'placeholder' => 'Pincode')) }} {!! APFrmErrHelp::showErrors($errors, 'pincode') !!}
{!! APFrmErrHelp::showErrors($errors, 'address_type') !!} {{-- --}}
{{ Form::text('governorate', $address->governorate, array('id'=>'governorate','class' => "form-control ".APFrmErrHelp::hasError($errors, 'governorate')." ",'placeholder' => 'Governorate')) }} {!! APFrmErrHelp::showErrors($errors, 'governorate') !!}
{{ Form::text('area', $address->area, array('id'=>'area','class' => "form-control ".APFrmErrHelp::hasError($errors, 'area')." ",'placeholder' => 'Area')) }} {!! APFrmErrHelp::showErrors($errors, 'area') !!}
{{ Form::text('address', $address->address, array('id'=>'address','class' => "form-control ".APFrmErrHelp::hasError($errors, 'address')." ",'placeholder' => 'Address')) }} {!! APFrmErrHelp::showErrors($errors, 'address') !!}
{{ Form::close() }}
@endforeach