@if ( count($errors) > 0 ) @include('app/layout/partials/alert-danger', ['errors' => $errors]) @endif <!-- START PANEL --> <div class="panel panel-default"> <div class="panel-body"> <div class=""> <?php $all_tahun = App\RefBantuan::groupBy('tahun')->orderBy('tahun', 'asc')->get(); ?> <?php $all_kelompok = App\Kelompok::groupBy('nama')->orderBy('nama', 'asc')->get(); ?> <div class="col-md-2"> <div class="form-group"> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')" class="full-width" data-init-plugin="select2"> <option value="{{ route('ref_bantuan', ['bidang' => 'all', 'thn' => $_GET['thn'], 'klp' => $_GET['klp'] ]) }}" {{ $_GET['bidang'] == 'all' ? 'selected' : '' }}>Semua Bidang Usaha</option> <option value="{{ route('ref_bantuan', ['bidang' => 'Nelayan', 'thn' => $_GET['thn'], 'klp' => $_GET['klp'] ]) }}" {{ $_GET['bidang'] == 'Nelayan' ? 'selected' : '' }}>Nelayan</option> <option value="{{ route('ref_bantuan', ['bidang' => 'Pembudidaya', 'thn' => $_GET['thn'], 'klp' => $_GET['klp'] ]) }}" {{ $_GET['bidang'] == 'Pembudidaya' ? 'selected' : '' }}>Pembudidaya</option> <option value="{{ route('ref_bantuan', ['bidang' => 'Pengolah', 'thn' => $_GET['thn'], 'klp' => $_GET['klp'] ]) }}" {{ $_GET['bidang'] == 'Pengolah' ? 'selected' : '' }}>Pengolah</option> </select> </div> </div> <div class="col-md-2"> <div class="form-group"> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')" class="full-width" data-init-plugin="select2">
public function run() { App\Kelompok::truncate(); $data = array(array('id_kelompok' => "kl1", 'nama' => "Bina Nusantara", 'alamat' => "Jl. Oke", 'tipe' => 'Pembudidaya'), array('id_kelompok' => "kl2", 'nama' => "Sipakainge", 'alamat' => "Jl. Oke", 'tipe' => 'Pembudidaya'), array('id_kelompok' => "kl3", 'nama' => "Sipatokkong", 'alamat' => "Jl. Oke", 'tipe' => 'Nelayan'), array('id_kelompok' => "kl4", 'nama' => "Semangat Nusantara", 'alamat' => "Jl. Durian", 'tipe' => 'Pengolah')); DB::table('app_kelompok')->insert($data); }
public function run() { App\Kelompok::truncate(); factory(App\Kelompok::class, 1)->create(); }