@extends('admin.template.master') @section('title')

Customer

@endsection @section('main-content')

Update

{!! Form::open(['method' => 'PATCH', 'url' => '/admin/customers/'.$customer->customer_id]) !!}
{!! Form::label('Customer Name') !!} {!! Form::text('customer_name', isset($customer->customer_detail->customer_name) ? $customer->customer_detail->customer_name : null, ['class' => 'form-control', 'placeholder' => 'Enter customer name']) !!} @if ($errors->has('customer_name')) {!! $errors->first('customer_name') !!}@endif
{!! Form::label('Email') !!} {!! Form::text('email', $customer->email, ['class' => 'form-control', 'placeholder' => 'Enter email']) !!} @if ($errors->has('email')) {!! $errors->first('email') !!}@endif
{!! Form::label('Contact') !!} {!! Form::text('phone', $customer->phone, ['readonly', 'class' => 'form-control', 'placeholder' => 'Enter contact']) !!} @if ($errors->has('phone')) {!! $errors->first('phone') !!}@endif
{!! Form::label('Address') !!} {!! Form::textarea('customer_address', isset($customer->customer_detail->customer_address) ? $customer->customer_detail->customer_address : null, ['class' => 'form-control', 'placeholder' => 'Enter address', 'rows' => 5]) !!} @if ($errors->has('customer_address')) {!! $errors->first('customer_address') !!}@endif
{{-- {!! Form::label('Customer Registration Tracker') !!} --}}
@if ($errors->has('customer_reg_tracker')) {!! $errors->first('customer_reg_tracker') !!}@endif
{!! Form::label('Group') !!} {!! Form::select('group_id',$groups, $customer->group_id,['class' => 'form-control', 'placeholder' => 'Select Group']) !!} @if ($errors->has('customer_group')) {!! $errors->first('customer_group') !!}@endif
{!! Form::label('status','Status') !!} {!! Form::select('customer_is_exist',['1' => 'Active','0' => 'Inactive'],$customer->customer_is_exist,['class' =>'form-control']) !!} @if ($errors->has('customer_is_exist')) {!! $errors->first('customer_is_exist') !!} @endif
{!! Form::close() !!}
@endsection