vitareinforce

syntax terlambat masuk

Apr 18th, 2021
1,027
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     // Case jam istirahat mulai melewati / sama dengan 00:00
  2.                     if(strtotime("+24 hours", strtotime($jadwal_terpilih->jam_masuk)) >= strtotime($waktu_tap)) {
  3.                         dd($before_jam_masuk . " - " . $after_jam_masuk);
  4.                        
  5.                         // Case before_jam_pulang melewati / sama dengan 00:00
  6.                         if (($waktu_tap > $before_jam_pulang) && (strtotime($waktu_tap) < strtotime("+24 hours", strtotime($after_jam_masuk)))) {
  7.                             $presensi->slotjam = 'Masuk';
  8.                         } else if (($waktu_tap == $before_jam_masuk) || (strtotime($waktu_tap) == strtotime("+24 hours", strtotime($after_jam_masuk)))) {
  9.                             $presensi->slotjam = 'Masuk';
  10.                         } else if (($waktu_tap < $before_jam_istirahat_mulai) && (strtotime($waktu_tap) < strtotime("+24 hours", strtotime($after_jam_istirahat_mulai)))) {
  11.                             $presensi->slotjam = 'Terlambat Masuk';
  12.                         } else if (($waktu_tap > $after_jam_masuk) && (strtotime($waktu_tap) < strtotime("+24 hours", strtotime($before_jam_istirahat_mulai)))) {
  13.                             $presensi->slotjam = 'Terlambat Masuk';
  14.                         }
  15.                     }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×