<html lang="en">
<head>
	<title>Import - Export Laravel 5</title>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" >
</head>


<body>
<br/>
<br/>
	<div class="container">		
		<div class="panel panel-primary">
		  <div class="panel-heading">
		    <h3 class="panel-title" style="padding:12px 0px;font-size:25px;"><strong>Laravel 5.3 - import export csv or excel file into database example</strong></h3>
		  </div>
		  <div class="panel-body">


		  		<?php if($message = Session::get('success')): ?>
					<div class="alert alert-success" role="alert">
						<?php echo e(Session::get('success')); ?>

					</div>
				<?php endif; ?>


				<?php if($message = Session::get('error')): ?>
					<div class="alert alert-danger" role="alert">
						<?php echo e(Session::get('error')); ?>

					</div>
				<?php endif; ?>


				<h3>Import File Form:</h3>
				<form style="border: 4px solid #a1a1a1;margin-top: 15px;padding: 20px;" action="<?php echo e(URL::to('importExcel')); ?>" class="form-horizontal" method="post" enctype="multipart/form-data">


					<input type="file" name="import_file" />
					<?php echo e(csrf_field()); ?>

					<br/>


					<button class="btn btn-primary">Import CSV or Excel File</button>


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


</body>


</html>