@extends('layouts.master') @section('title') hotspot @endsection @section('css')
@endsection @section('content')
{{-- @component('components.breadcrumb') @slot('li_1') Networking @endslot @slot('title') Hotspot @endslot @endcomponent --}}
@can('view hotspot widgets')
@can('view hotspot revenue')
@endcan
@endcan
{{-- @if(isset($updateData['version']) && isUpdateAvailable($updateData['version'], env('VERSION_INSTALLED')))
@include('dashboard.update')
@endif --}}
@hasrole('super-admin')
@include('dashboard.license')
@endhasrole
@foreach(['', 'Voucher', 'Ip address', 'Start Time', 'Download', 'Upload', 'Time online'] as $cell)
| {{ $cell }} |
@endforeach
@php
function countdown($date){
$seconds = strtotime($date) - time(); // Calculate the remaining seconds
$days = floor($seconds / 86400); // Calculate the remaining days
$hours = floor(($seconds % 86400) / 3600); // Calculate the remaining hours
$minutes = floor(($seconds % 3600) / 60); // Calculate the remaining minutes
$seconds = ($seconds % 60); // Calculate the remaining seconds
// Output the countdown
echo "Days: $days, Hours: $hours, Minutes: $minutes, Seconds: $seconds";
}
@endphp
@endsection @section('script')
@endsection