@extends('market.layout.master')
@section('ptitle', 'Marketing')
@section('page_title', 'Dashboard')
@section('subpage', 'Graph & Summary Report')
@section('img_profile', asset($user->staffDetail->user_pic))
@section('login_name', $user->staffDetail->name )
@section('last_login', $user->last_login_at )

@section('content')
	<style type="text/css">
		.i_note {color: red;}
	</style>

	<div class="fluid">
		<div class="widget grid2 widgetH"></div>
			<div class="grid8">
				@if(count($errors) > 0)
				<div class="nNote nFailure">
					@foreach($errors->all() as $error)
					<p>{{$error}}</p>
					@endforeach
				</div>
				@endif

				@if(Session::get('error_msg'))
				<div class="nNote nFailure">
					<p>Email or Password is invalid</p>
				</div>
				@elseif(Session::get('success_msg'))
				<div class="nNote nSuccess">
					<p>Add new dealer successful</p>
				</div>
				@endif
			</div>
		<div class="widget grid2 widgetH"></div>
	</div>

	<div class="fluid">
		<form action="{{ url('/marketing/dealer/add-new-company') }}" class="main cussPayment" method="POST" enctype="multipart/form-data">
			<fieldset>
				<div class="widget grid2 widgetH"></div>
				<div class="widget grid8">
					<div class="whead"><h6>Dealer's Detail ( Company )</h6></div>

					<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Dealer Name : </b></label></div>
                        <div class="grid6"><input type="text" name="aname" id="cname" value="" required /></div>
						<div class="grid2">&nbsp;</div>
					</div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Business Registration Number: </b></label></div>
                        <div class="grid6"><input type="text" name="biz_reg_no" id="biz_reg_no" value="" required /></div>
						<div class="grid2">&nbsp;</div>
					</div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Contact Number : </b></label></div>
                        <div class="grid6"><input type="text" name="contact_no" id="contact_no" value="" required /></div>
						<div class="grid2">&nbsp;</div>
					</div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Finance Email Address : </b></label></div>
                        <div class="grid6"><input type="text" name="fin_email" id="fin_email" value="" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Address : </b></label></div>
                        <div class="grid6"><textarea rows="3" cols="" name="address" id="address" class="auto" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 70px;" required></textarea></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>City : </b></label></div>
                        <div class="grid6"><input type="text" name="city" id="city" value="" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Postcode : </b></label></div>
                        <div class="grid6"><input type="text" name="postcode" id="postcode" value="" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>State : </b></label></div>
                        <div class="grid6"><input type="text" name="state" id="state" value="" required /></div>
						<div class="grid2">&nbsp;</div>
					</div>

					<div class="formRow">
					<h6>Bank Account Details</h6>
					</div>

					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Bank Name : </b></label></div>
                        <div class="grid6"><input type="text" name="bank_name" id="bank_name" value="" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Account Holder Name : </b></label></div>
                        <div class="grid6"><input type="text" name="acc_holder_name" id="acc_holder_name" value="" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Account Number : </b></label></div>
                        <div class="grid6"><input type="text" name="acc_no" id="acc_no" value="" required /></div>
						<div class="grid2">&nbsp;</div>
					</div>
					
					<div class="formRow noBorderB" id="sendForm"><input type="submit" value="Submit" class="buttonM bPurple formSubmit" name="submit" id="submit"></div>
				</div>
				<div class="widget grid2 widgetH"></div>
			</fieldset>
		</form>
	</div>
@endsection

@section('external_js')
@endsection