@extends('layouts.app') @section('titlepage', 'Lembur') @section('content') @section('navigasi') Lembur @endsection
@can('lembur.create') Input Lembur @endcan
@foreach ($lembur as $d) @endforeach
Tanggal Nik Nama Karyawan Cabang Waktu Lembur Lembur IN Lembur OUT Jml Jam Status #
{{ DateToIndo($d->tanggal) }} {{ $d->nik }} {{ $d->nama_karyawan }} {{ $d->nama_cabang }} {{ date('d-m-Y H:i', strtotime($d->lembur_mulai)) }} - {{ date('d-m-Y H:i', strtotime($d->lembur_selesai)) }} {!! $d->lembur_in ? date('d-m-Y H:i', strtotime($d->lembur_in)) : '' !!} {!! $d->lembur_out ? date('d-m-Y H:i', strtotime($d->lembur_out)) : '' !!} {!! $d->lembur_in && $d->lembur_out ? ROUND(hitungJam($d->lembur_in, $d->lembur_out), 2) : '' !!} @if ($d->status == '1') @elseif ($d->status == '2') @else @endif
@can('lembur.approve') @if ($d->status == 0) @elseif($d->status == 1 || $d->status == 2)
@csrf @method('DELETE')
@endif @endcan @can('lembur.edit') @endcan @can('lembur.index') @endcan @can('lembur.delete') @if ($d->status == 0)
@csrf @method('DELETE')
@endif @endcan
{{ $lembur->links() }}
@endsection @push('myscript') @endpush