@extends('layout')


@section('content')

<div class="page-header page-header-default">
	<div class="breadcrumb-line">
		<ul class="breadcrumb">
			<li class="active"><i class="icon-home2 position-left"></i> Laporan</li>
			</li>
		</ul>
	</div>
</div>

<div class="content">
	<div class="panel panel-flat">
		<div class="panel-heading">
			<h5 class="panel-title">Laporan</h5>
	    </div>
	    <div class="panel-body">
	    	@php
	    	$btn_link = [
	    			"Jurnal" => url('laporan/jurnal_umum'),
	    			"Buku Besar" => url('laporan/buku_besar'),
	    			"Neraca Saldo" => url('laporan/neraca_saldo'),
	    			"Neraca" => url('laporan/neraca'),
	    			"Laba Rugi" => url('laporan/laba_rugi'),
	    		];
	    	@endphp

	    	@foreach($btn_link AS $name => $url)
	    		<div class='col-sm-2 col-md-2'>
	    			<div class="panel">
	    				<div class="panel-body text-center">
	    					@if($name == "Jurnal")
	    					<img src="{{ asset("images/icon/jurnal.png") }}" style="width: 50%;">
	    					@elseif($name == "Buku Besar")
	    					<img src="{{ asset("images/icon/buku_besar.png") }}" style="width: 50%;">
	    					@elseif($name == "Neraca Saldo")
	    					<img src="{{ asset("images/icon/neraca_saldo.png") }}" style="width: 50%;">
	    					@elseif($name == "Neraca")
	    					<img src="{{ asset("images/icon/neraca.png") }}" style="width: 50%;">
	    					@elseif($name == "Laba Rugi")
	    					<img src="{{ asset("images/icon/laba_rugi.png") }}" style="width: 50%;">
	    					@endif
	    				</div>
	    				<div class="panel-footer text-center">
	    					<a href="{{ $url }}" class="panel-title" style="font-weight: bold;" target="_blank">{{ $name }}</a>
	    				</div>
	    			</div>
    			</div>
	    	@endforeach
	    </div>
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){

});
</script>

@endsection