@extends('user.layouts.app') @php // Byte conversion function formatBytes($size, $precision = 2) { $base = log($size, 1024); $suffixes = ['', 'kB', 'MB', 'GB', 'TB']; return round(pow(1024, $base - floor($base)), $precision) . '' . $suffixes[floor($base)]; } @endphp {{-- Custom CSS & JS --}} @section('custom-css') @endsection @section('content')
{{-- Failed --}} @if (Session::has('failed')) @endif {{-- Success --}} @if (Session::has('success')) @endif
{{-- Today Optimize Images --}}
{{ __('Today Optimizes') }}
{{ $today_optimized_images }}
{{-- Today Optimize Size --}}
{{ __('Today Optimize') }}
{{ $today_optimized_image_size != 0 ? formatBytes($today_optimized_image_size) : 0 }}
{{-- Overall Optimize Size --}}
{{ __('Overall Optimize') }}
{{ $overall_optimized_image_size != 0 ? formatBytes($overall_optimized_image_size) : 0 }}
@if (!empty($optimers) && $optimers->count()) {{-- Optimize Images --}} @foreach ($optimers as $optimer)
{{ $optimer->name }}
{{ __('Uploaded on:') }}{{ formatDateForUser($optimer->created_at) }}
@endforeach @else

{{ __('No optimize images found') }}

{{ __('Try adjusting your add to find what you are looking for.') }}

@endif {{-- Pagination --}}
{{ $optimers->links() }}
{{-- Footer --}} @include('user.includes.footer')
{{-- Delete Optimize Modal --}} {{-- Bulk Delete Optimize Modal --}} {{-- Bulk Download Optimize Modal --}} {{-- Download Optimize --}} {{-- Custom JS --}} @section('custom-js')