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

Update Customer Details Back

{{ Form::open(array('url'=>'/sales/customers/edit/'.$data->id))}} @csrf @php $title = array(''=>'Select','Mr'=>'Mr','Mrs'=>'Mrs','Ms'=>'Ms','Miss'=>'Miss','Dr'=>'Dr'); @endphp
{{ Form::select('title',$title,$data->title,['class'=>'form-control']) }} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::text('first_name',$data->first_name,['class'=>'form-control']) }} @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
{{ Form::text('last_name',$data->last_name,['class'=>'form-control']) }} @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
{{ Form::text('position',$data->position,['class'=>'form-control']) }} @if ($errors->has('position')) {{ $errors->first('position') }} @endif
{{ Form::text('phone',$data->phone,['class'=>'form-control']) }} @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
{{ Form::text('email',$data->email,['class'=>'form-control']) }} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{{ Form::text('website',$data->website,['class'=>'form-control']) }} @if ($errors->has('website')) {{ $errors->first('website') }} @endif
{{ Form::select('company_id_fk',array(''=>'Please select')+$companies,$data->company_id_fk,['class'=>'form-control']) }} @if ($errors->has('company_id_fk')) {{ $errors->first('company_id_fk') }} @endif
{{ Form::select('contact_type_id_fk',array(''=>'Please select')+$contact_types,$data->contact_type_id_fk,['class'=>'form-control']) }} @if ($errors->has('contact_type_id_fk')) {{ $errors->first('contact_type_id_fk') }} @endif
{{ Form::select('source_id_fk',array(''=>'Please select')+$sources,$data->source_id_fk,['class'=>'form-control']) }} @if ($errors->has('source_id_fk')) {{ $errors->first('source_id_fk') }} @endif
{{ Form::textarea('remarks',$data->remarks,['class'=>'form-control','rows'=>3,'cols'=>3]) }} @if ($errors->has('remarks')) {{ $errors->first('remarks') }} @endif
{{ Form::select('status',array('0'=>'Inactive','1'=>'Active'),$data->status,['class'=>'form-control']) }} @if ($errors->has('source_id_fk')) {{ $errors->first('source_id_fk') }} @endif
{{ Form::submit('submit',array('class'=>'btn btn-primary')) }}
@endsection