@extends('layouts.layout')

@section('content')







	<div class="row" style="margin-top: -1000px">
	<div class="col-md-12">
	<h2 style="color:black">Daftar pembayaran</h2>
	</div>
	</div>

<div class="panel-body">
<div class="btn-group">
	<button type="button" class="btn btn-info">Export</button>
	<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown">
	<span class="caret"></span>
	<span class="sr-only">Toggle Dropdown</span>
	</button>
	<ul class="dropdown-menu" role="menu" id="export-men">
	<li id="export-to-pdf"><a href="{{URL::to('getPDFKeuangan')}}">Export To PDF</a></li>
	<li class="divider"></li>

	</ul>
</div>
</div>


	<div class="row">
		<table class="table table-striped" style="color:black">
		<tr>
		<th>No.</th>
		<th>Nama</th>
		<th>Harga</th>
		</tr>

		
     	
		<?php $no=1; ?>

		@foreach($pembayarans as $pembayaran)

		<tr style="background-color: #E1E1E1">
		<td>{{$no++}}</td>
		<td>{{$pembayaran->nama}}</td>
		<td>{{$pembayaran->total_harga}}</td>
		

		</tr>

		@endforeach
		&nbsp;&nbsp;&nbsp;<th style="background-color: #E1E1E1">Total</th><td style="background-color: #E1E1E1">{{$total}}</td>
		</table>

{!! $pembayarans->links() !!}
		
		</div>



  @endsection