</thead>
									<tbody>

										<?php 
if (isset($_GET['page'])) {
    $i = ($_GET['page'] - 1) * $limit + 1;
} else {
    $i = 1;
}
?>

										@foreach($bantuan as $bantu)
										<tr>
											<td>
												<?php 
$data_master = App\RefBantuan::where('id_bantuan', $bantu->id)->count();
?>

													<?php 
$title = "";
$disabled = "";
if ($data_master >= 1) {
    $title = "Bantuan sedang terpakai";
    $disabled = "disabled";
}
?>
												<div class="checkbox" title="<?php 
echo $title;
?>
">
													<input type="checkbox" class="pilih" value="{{ $bantu->id }}" id="checkbox{{ $bantu->id }}" <?php 
@extends('app.layout.main')

@section('title')
	Statistik
@endsection

@section('konten')

<?php 
$total_pembudidaya = $pembudidaya_air_tawar + $pembudidaya_air_laut + $pembudidaya_air_payau;
$total_bantuan = App\RefBantuan::where('tahun', $_GET['tahun'])->count();
$total_sarana_nelayan = $jml_perahu + $jml_mesin + $jml_alat_tangkap;
$Sc = new App\custom();
$tampilan_grafik = isset($_GET['view']) ? $_GET['view'] : 'batang';
?>

<!-- START PAGE-CONTAINER -->
<div class="page-container">

	<!-- START PAGE CONTENT WRAPPER -->
	<div class="page-content-wrapper">
		
		<!-- START PAGE CONTENT -->			
		<div class="content">
			
			<div class="jumbotron bg-darkblue" data-pages="parallax">
				<div class="container-fluid container-fixed-lg">
					<div class="inner" style="transform: translateY(0px); opacity: 1;">
						<!-- START BREADCRUMB -->
						<ul class="breadcrumb pull-left">
							<li>