@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

Update Salesman

@endsection @section('main-content')
@if(Session::has('message'))

Alert!

{{Session('message')}}
@endif
{!! Form::open([ 'method' => 'post', 'url' => '/admin/presale-salesmans/edit/'. $customer->customer_id ]) !!} @csrf
{!! Form::label('Phone Number') !!} {!! Form::text('phone', $customer->phone , ['class' => 'form-control', 'readonly' => 'readonly', 'required'=> 'required', 'placeholder' => 'Phone Number 10 digit without first 0']) !!} @if ($errors->has('phone')){!! $errors->first('phone') !!}@endif
{!! Form::label('Password') !!} {!! Form::text('password', null , ['class' => 'form-control', 'placeholder' => 'Enter Password']) !!}
{!! Form::label('Location') !!} {!! Form::select('location_id', $locations, $customer->location_id, ['id' => 'location_id', 'class'=> 'form-control']) !!} @if ($errors->has('location_id')) {!! $errors->first('location_id') !!} @endif
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection