@extends('backend.layout.master') @include('backend.kg-dashboard.css') @section('content')

Dashboard

@if(!auth()->guard('web')->user()->is_subscription_active && !is_null(auth()->guard('web')->user()->subscription_expiry)) @elseif(is_null(auth()->guard('web')->user()->subscription_expiry) || is_null(auth()->guard('web')->user()->subscription_start)) @endif @php $now = time(); // or your date as well $expiry_date = strtotime(auth()->guard('web')->user()->subscription_expiry); $datediff = $expiry_date - $now; $diffInDays = round($datediff / (60 * 60 * 24)); if($diffInDays >= 0 && $diffInDays <= 7) { $renew = true; echo ''; } @endphp @if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif

Birthdays

@foreach($data['next_birthday'] as $item) @endforeach

Notes

@if(count($data['note']) > 0) @foreach($data['note'] as $key=>$item) @endforeach
NOTE STUDENT DATE ACTION

{{ $item->note }}

{{$item->student->first_name}} {{ substr($item->student->last_name, 0, 1) }}. {{date('m/d/Y',strtotime($item->created_at))}} Delete
@endif
@endsection @include('backend.kg-dashboard.js')