@extends('layouts.superadmin') {{ config('app.name', 'Laravel') }} | Admin | Dashboard @include('datepicker') @section('main-content')
@if (Session::has('success')) @endif @if ($errors->any())
@endif
@php if ($totalSpaceInGB == 0) { $usedPercentage = 0; } else { $usedPercentage = ($usedSpaceInGB / $totalSpaceInGB) * 100; } $backgroundColor = 'rgb(113 221 55)'; // Default color if (round($usedPercentage, 2) > 40 && round($usedPercentage, 2) < 70) { $backgroundColor = 'orange'; } elseif (round($usedPercentage, 2) > 70) { $backgroundColor = 'red'; } $style = "width: {$usedPercentage}%; background-color: {$backgroundColor};"; @endphp
@if ($usedPercentage >= 80)

S3 bucket limit is going to reach the max free limit ({{ $totalSpaceInGB }} GB), current storage is {{ $usedSpaceInGB }} GB

@endif
Welcome To {{ Auth::user()->first_name }} {{ Auth::user()->last_name }} Dashboard 🎉
View Badge User

S3 Storage Details (Last Updated: {{ $lastModifiedDate }})

{{ round($usedPercentage, 2) }}%
Maximum Free Space Limit:

{{ $totalSpaceInGB }} GB

Used Space:

{{ $usedSpaceInGB }} GB

Free Space:

{{ $freeSpaceInGB }} GB

@endsection