@extends('../../master_layout/admin_master') @section('title') {{config('constants.APP_NAME')}} {{ ($edit)?'Edit':'Add' }} Dealer User @endsection @section('content')

{{ ($edit)?'Edit':'Add' }} Dealer User

@if(session('message'))
@if(session('message.type')=='danger')

Sorry! {!! session('message.text') !!}

@else

Success! {!! session('message.text') !!}

@endif
@endif
@csrf
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if ($errors->has('middle_name')) {{ $errors->first('middle_name') }} @endif
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@if ($errors->has('contact_number')) {{ $errors->first('contact_number') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif