@extends('layouts.master') @section('content')
{{-- message --}} {!! Toastr::message() !!} @php use Carbon\Carbon; $today_date = Carbon::today()->format('d-m-Y'); @endphp
@foreach ($holiday as $key=>$items ) @if(($today_date > $items->date_holiday)) @endif @endforeach @foreach ($holiday as $key=>$items ) @if(($today_date <= $items->date_holiday)) @endif @endforeach
No Title Holiday Date Day Action
{{ ++$key }} {{ $items->name_holiday }} {{date('d F, Y',strtotime($items->date_holiday)) }} {{date('l',strtotime($items->date_holiday)) }}
{{ ++$key }} {{ $items->name_holiday }} {{date('d F, Y',strtotime($items->date_holiday)) }} {{date('l',strtotime($items->date_holiday)) }}
@section('script') {{-- update js --}} @endsection @endsection