@extends('templates.app') @section('container')

{{ $shift_karyawan->Shift->nama_shift ?? '-' }}

{{ auth()->user()->Lokasi->nama_lokasi }}

Jam Kerja

{{ $shift_karyawan->Shift->jam_masuk ?? '' }} - {{ $shift_karyawan->Shift->jam_keluar ?? '' }}

@php $tahun_skrg = date('Y'); $bulan_skrg = date('m'); $jmlh_bulan = cal_days_in_month(CAL_GREGORIAN,$bulan_skrg,$tahun_skrg); $tgl_mulai = date('Y-m-01'); $tgl_akhir = date('Y-m-'.$jmlh_bulan); $sisa_reimbursement = auth()->user()->reimbursement->whereBetween('tanggal', [$tgl_mulai, $tgl_akhir])->where('status', 'Approved')->sum('sisa'); $fee_reimbursement = App\Models\ReimbursementsItem::whereHas('reimbursement', function ($query) use ($tgl_mulai, $tgl_akhir) { $query->whereBetween('tanggal', [$tgl_mulai, $tgl_akhir])->where('status', 'Approved'); })->where('user_id', auth()->user()->id)->sum('fee'); $total_reimbursement = $sisa_reimbursement + $fee_reimbursement; $total_kasbon = App\Models\Kasbon::where('user_id', auth()->user()->id)->whereBetween('tanggal', [$tgl_mulai, $tgl_akhir])->where('status', 'Acc')->sum('nominal'); @endphp

Layanan

Berita

View All

Informasi

View All
images
images
images
@endsection