@extends('templates.dashboard') @section('isi')

{{ $title }}

@php $bulan = array( [ "id" => "1", "bulan" => "Januari" ], [ "id" => "2", "bulan" => "Februari" ], [ "id" => "3", "bulan" => "Maret" ], [ "id" => "4", "bulan" => "April" ], [ "id" => "5", "bulan" => "Mei" ], [ "id" => "6", "bulan" => "Juni" ], [ "id" => "7", "bulan" => "Juli" ], [ "id" => "8", "bulan" => "Agustus" ], [ "id" => "9", "bulan" => "September" ], [ "id" => "10", "bulan" => "Oktober" ], [ "id" => "11", "bulan" => "November" ], [ "id" => "12", "bulan" => "Desember" ]); $last = date('Y')-10; $now = date('Y'); @endphp
@foreach ($data as $d) @endforeach
No. Nomor Gaji Nama Jabatan Bulan Grand Total Actions
{{ $loop->iteration }} {{ $d->no_gaji }} {{ $d->user->name }} {{ $d->User->Jabatan->nama_jabatan }} @php if ($d->bulan == 1){ $nama_bulan = 'Januari'; } else if($d->bulan == 2) { $nama_bulan = 'Februari'; } else if($d->bulan == 3) { $nama_bulan = 'Maret'; } else if($d->bulan == 4) { $nama_bulan = 'April'; } else if($d->bulan == 5) { $nama_bulan = 'Mei'; } else if($d->bulan == 6) { $nama_bulan = 'Juni'; } else if($d->bulan == 7) { $nama_bulan = 'Juli'; } else if($d->bulan == 8) { $nama_bulan = 'Agustus'; } else if($d->bulan == 9) { $nama_bulan = 'September'; } else if($d->bulan == 10) { $nama_bulan = 'Oktober'; } else if($d->bulan == 11) { $nama_bulan = 'November'; } else if($d->bulan == 12) { $nama_bulan = 'Desember'; } else { $nama_bulan = '-'; } @endphp {{ $nama_bulan }} {{ $d->tahun }} Rp {{ number_format($d->grand_total) }}
  • @can('admin')
  • @method('delete') @csrf
  • @endcan
{{ $data->links() }}
@endsection