<div >
	<?php if($this->session->flashdata('api_response')!==null):?>
	<div class="alert alert-<?=$this->session->flashdata('type')?> alert-dismissible fade show" role="alert">
		 <?=$this->session->flashdata('api_response')?>
		<button type="button" class="close" data-dismiss="alert" aria-label="Close">
			<span aria-hidden="true">&times;</span>
		</button>
	</div>
	<?php endif?>
	<div class="card">
		<div class="card-body">
			<h4 class="card-title">Flexiload</h4>

			<form class="forms-sample" method="post" action="<?=base_url('FlexiloadCtrl/flexiload_store')?>">

				<div class="row">
					<div class="col-md-6">
						<div class="form-group row">
							<label class="col-sm-3 col-form-label">Number Type</label>
							<div class="col-sm-4">
								<div class="form-check">
									<label class="form-check-label">
										<input type="radio" class="form-check-input" <?=set_value('number_type')==1?'checked':''?> name="number_type" id="membershipRadios1" value="1" required>
										Prepaid
										<i class="input-helper"></i></label>
								</div>
							</div>
							<div class="col-sm-5">
								<div class="form-check">
									<label class="form-check-label">
										<input type="radio" class="form-check-input" <?=set_value('number_type')==2?'checked':''?> name="number_type" id="membershipRadios2" value="2" required>
										PostPaid
										<i class="input-helper"></i></label>
								</div>
							</div>
						</div>
					</div>
				</div>

				<div class="row">

					<div class="col-md-6">
						<div class="form-group">
							<label for="exampleInputName1">Mobile Number</label>
							<input type="number" value="<?=set_value('phone_number')?>" class="form-control" name="phone_number" id="package_amount" placeholder="01xxxxxxxxx" required>
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<label for="validity">Operator</label>
							<select class="form-control" name="operator" required>
								<option  value="">Select One</option>
								<option value="gp" <?php echo set_select('operator', 'gp', TRUE); ?> >Grameen</option>
								<option value="blink" <?php echo set_select('operator', 'blink', TRUE); ?>>Banglalink</option>
								<option value="airtel" <?php echo set_select('operator', 'airtel', TRUE); ?>>Airtel</option>
								<option value="robi" <?php echo set_select('operator', 'robi', TRUE); ?>>Robi</option>
								<option value="teletalk" <?php echo set_select('operator', 'teletalk', TRUE); ?>>Teletalk</option>
								<option value="gpst" <?php echo set_select('operator', 'gpst', TRUE); ?>>GP Skitto</option>
							</select>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<label for="commission">Amount (Tk)</label>
							<input type="number" value="<?=set_value('amount')?>"  class="form-control"  name="amount" id="amount" placeholder="Amount" required>
						</div>
					</div>


					<div class="col-md-6">
						<div class="form-group">
							<label for="remarks">Remarks</label>
							<input type="text" value="<?=set_value('remarks')?> " class="form-control" name="remarks" id="remarks" placeholder="Short description" >
						</div>
					</div>

				</div>
				<div class="row">

					<div class="col-md-6">
						<div class="form-group">
							<label for="total_commission">Activation Pin</label>
							<input type="password" value="<?=set_value('pin_number')?>" class="form-control" name="pin_number" id="total_commission" placeholder="Your Pin Code" required>
						</div>
					</div>


				</div>



				<button  class="btn btn-primary mr-2">Submit</button>

			</form>
		</div>
	</div>
</div>


