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

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

	<div class="fluid">
		@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 commission (B) successful</p>
		</div>
		@endif
	</div>

	<div class="fluid">
		<form action="/Marketing/request-add-commissionB" class="main cussPayment" method="post" enctype="multipart/form-data">
			<fieldset>
				<div class="widget grid2 widgetH"></div>
				<div class="widget grid8">
					<div class="whead"><h6>Add New Commission (B)</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>Package Type / Package Range: </b></label></div>
                        <div class="grid6"><input type="text" name="packageR" id="packageR" placeholder="10-100 / 300" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Contract (Month) : </b></label></div>
                        <div class="grid6"><input type="text" name="contract" id="contract" placeholder="12 / 24"required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Range Activation Subcription : </b></label></div>
                        <div class="grid6"><input type="text" name="ranges" id="ranges" placeholder="0-20 / >50" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Commission (%) : </b></label></div>
                        <div class="grid6"><input type="text" name="comm" id="comm" placeholder="250" required /></div>
						<div class="grid2">&nbsp;</div>
                    </div>
					
					<div class="formRow">
						<div class="grid2">&nbsp;</div>
						<div class="grid2"><label><b>Category : </b></label></div>
                        <div class="grid6"><input type="text" name="categori" id="categori" 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