@extends('layouts.layout') @section('content') @php $allvideo = App\Http\Controllers\LoginController::video(); $alltitle = App\Http\Controllers\LoginController::title(); @endphp

Everyday Continuing 345 system Education

(Wellness & Business Sharing)


@if(count($allvideo) == 0) @else @foreach($allvideo as $value) @php $p = ''; date_default_timezone_set("Asia/Singapore"); $timenow = date('Y-m-d h:i:s'); $time = date('Y-m-d h:i:s', strtotime($timenow)); $start = date('Y-m-d h:i:s', strtotime($value->start)); $stop = date('Y-m-d h:i:s', strtotime($value->end)); if($time > $stop){ $p = 'none'; }else{ if($time < $start){ $p = 'none'; }else{ $p = 'block'; } } @endphp @endforeach @endif
@foreach($alltitle as $value) @endforeach
@endsection