@extends('layout')

@section('content')
<div class="page-header page-header-default">
	<div class="breadcrumb-line">
		<ul class="breadcrumb">
			<li><a href="index.html"><i class="icon-home2 position-left"></i> Produksi</a></li>
			<li class="active">Upah Harian</li>
		</ul>
	</div>
</div>

<div class="content">
	<div class="panel panel-flat">
		<div class="panel-heading">
			<h5 class="panel-title">Upah Harian</h5>
			<div class="heading-elements">
				<ul class="icons-list">
		      		<li><a data-action="collapse"></a></li>
		      	</ul>
	       	</div>
	    </div>
	    <div class="panel-body">
	    	<div class="col-lg-12">
	    		@if(Session::has('flash_message_error'))
	    		<div class="alert alert-error alert-block">
	    			<button type="button" class="close" data-dismiss="alert">x</button>
	    			<strong>{!! session('flash_message_error') !!}</strong>
	    		</div>
	    		@endif
	    		@if(Session::has('flash_message_success'))
	    		<div class="alert alert-success alert-block">
	    			<button type="button" class="close" data-dismiss="alert">x</button>
	    			<strong>{!! session('flash_message_success') !!}</strong>
	    		</div>
	    		@endif
	    	</div>
	    </div>
	    <table class="table table-basic">
	    	<tbody>
	    		<tr>
	    			<td>1. Silakan download template gaji pegawai <a class="label label-danger" href="{{ url('upahharian/download_template_gaji') }}">disini</a>.</td>
	    		</tr>
	    		<tr>
	    			<td>2. Isikan data gaji pegawai sesuai template.</td>
	    		</tr>
	    		<tr>
	    			<td>3. Upload file template gaji pegawai.</td>
	    		</tr>
	    		<tr>
	    			<td>
						<form action="{{ url('upahharian/importexcel') }}" class="form-horizontal" method="post" enctype="multipart/form-data">
							{{csrf_field()}}
							<div class="form-group" >
								<div class="col-sm-4 col-md-3 btn btn-primary">
									<input type="file" name="import_file" accept=".xlsx, .xls" />
								</div>
								<div class="col-sm-4 col-md-3">
									<button type="submit" class="btn btn-success">Upload</button>
								</div>
							</div>
						</form>
	    			</td>
	    		</tr>
	    	</tbody>
	    </table>
	</div>
</div>

@endsection