Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @foreach($reportShow as $rpt)
- <tr>
- <td>{{ $rpt->tahun_tanam }}</td>
- <td>{{ $rpt->company->name }}</td>
- @if($rpt->divisi_id == 0)
- <td></td>
- @else
- <td>{{ $rpt->divisi->name }}</td>
- @endif
- <td>{{ $rpt->realisasi_luastm }}</td>
- <td>{{ $rpt->anggaran_luastm }}</td>
- <td>{{ $rpt->realisasi_bi_produksi }}</td>
- <td>{{ $rpt->anggaran_bi_produksi }}</td>
- <td>{{ $rpt->realisasi_sdbi_produksi }}</td>
- <td>{{ $rpt->anggaran_sdbi_produksi }}</td>
- <td>{{ $rpt->anggaran_th_produksi }}</td>
- <td>{{ $rpt->kgha_bi }}</td>
- <td>{{ $rpt->kgha_sdbi }}</td>
- <td>{{ $rpt->anggaran_th_kgha }}</td>
- </tr>
- <!--tr>
- <th colspan="3" class="align-middle">Subtol Total</th>
- <th class="align-middle">{{ $realisasi_luastm }}</th>
- <th class="align-middle">{{ $anggaran_luastm }}</th>
- <th class="align-middle">{{ $realisasi_bi_produksi }}</th>
- <th class="align-middle">{{ $anggaran_bi_produksi }}</th>
- <th class="align-middle">{{ $realisasi_sdbi_produksi }}</th>
- <th class="align-middle">{{ $anggaran_sdbi_produksi }}</th>
- <th class="align-middle">{{ $anggaran_th_produksi }}</th>
- <th class="align-middle">{{ $kgha_bi }}</th>
- <th class="align-middle">{{ $kgha_sdbi }}</th>
- <th class="align-middle">{{ $anggaran_th_kgha }}</th>
- </tr-->
- <?php
- if(!isset($thn)){
- $tahun=$rpt->tahun_tanam;
- $sub_realisasi_luastm=0;
- $null = 'on progress';
- }
- if($thn == $rpt->tahun_tanam){
- $sub_realisasi_luastm+=$rpt->realisasi_luastm; //maaf sesuaikan aja
- }
- else{
- ?>
- <tr>
- <td>{{ $tahun }}</td>
- <td>{{ $rpt->company->name }}</td>
- @if($rpt->divisi_id == 0)
- <td></td>
- @else
- <td>{{ $rpt->divisi->name }}</td>
- @endif
- <td>{{ $sub_realisasi_luastm }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- <td>{{ $null }}</td>
- </tr>
- <?php
- $sub_realisasi_luastm=0;//reset
- }
- @endforeach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement