@extends('layout.main') @section('title', 'Absensi') @section('isi') @if (Auth::user()->is_industri == 1)

PENENTUAN HARI KERJA

@if ($data <= $jhk) @for ($i=1; $i <=$jhk; $i++) @endfor @endif
# Hari Tangggal Aksi
{{$i}} {{$hari[] = date('l', strtotime($hari[] = $h->addDay()))}} {{$tang[] = date('Y-m-d', strtotime($tang[] = $t1->addDay()))}}
@csrf
@csrf
@if ($data > 0)

JADWAL

@foreach ($jadw as $jdw) @if ($jdw->masuk == 1) @else @endif @endforeach
# Hari Tangggal Status Aksi
{{ $loop->iteration }} {{date('l', strtotime($jdw->tanggal))}} {{$jdw->tanggal}} @if ($jdw->masuk == 1) Masuk @else Libur @endif KehadiranHari Libur
@endif
@endif @if (Auth::user()->is_siswa == 1)
@if ($indu == null)

ABSENSI

@elseif ($data == 0)

ABSENSI

@else

ABSENSI

@foreach ($absen as $a)
{{$a->tanggal}}

{{date('l', strtotime($a->tanggal))}}

@csrf
@error('buke') {{ $message }} @enderror

Notice: Undefined variable: a in C:\xampp7\htdocs\sigpkl\resources\views\multi\absensi.blade.php on line 162

Notice: Trying to get property 'tanggal' of non-object in C:\xampp7\htdocs\sigpkl\resources\views\multi\absensi.blade.php on line 162
@if ($tangab >= $sekarang) @else @endif
@endforeach

KEHADIRAN

@foreach ($absen as $a) @php $hadir = app('App\Http\Controllers\CalendarsController')->cekHadir(Auth::user()->id, $a->id); @endphp
{{date('l', strtotime($a->tanggal))}}, {{$a->tanggal}} @if ($hadir == 1) Hadir @else Tidak Hadir @endif
@endforeach
@endif
@endif @endsection