@extends('layouts.app') @section('content')

{{ ($senddata->id != '') ? 'Edit' : 'Add' }} Address Book

{!! Form::model($senddata, ['route' => $route, 'method' => $method, 'id'=>'address_book_form' , 'files' => true,'class' => 'form']) !!}
{{ Form::text('name',($senddata->id != '') ? $senddata->name : old('name'),['class' => 'form-control','data-error' => 'Please Enter Name','placeholder'=>'Please Enter Name'] ) }}
{{ Form::text('phone',($senddata->id != '') ? $senddata->phone : old('phone'),['class' => 'form-control','data-error' => 'Please Enter Phone Number','placeholder'=>'Please Enter Phone number'] ) }}
{{ Form::text('house_apartment',($senddata->id != '') ? $senddata->house_apartment : old('house_apartment'),['class' => 'form-control','data-error' => 'Please Enter House Number','placeholder'=>'Please Enter House number'] ) }}
{{ Form::text('landmark',($senddata->id != '') ? $senddata->landmark : old('landmark'),['class' => 'form-control','data-error' => 'Please Enter Landmark','placeholder'=>'Please Enter Landmark'] ) }}
{!! Form::select('address_tag',['1'=>'Home','2'=>'Office','3'=>'Others'],($senddata->id != '') ? $senddata->address_tag : '',['class' => 'form-control']) !!}
@if ($senddata->id)
{!! Form::select('status',['1'=>'Active','0'=>'In Active'],($senddata->id != '') ? $senddata->status : '',['class' => 'form-control']) !!}
@endif
Cancel
{!! Form::close() !!}
@endsection @section('javascript') @endsection