@extends('layouts.app') @section('title', 'Image Manager') @section('content')
IM

{{ config('app.name', 'Image Manager') }}

Image Manager

{{ auth()->user()->name }}

{{ auth()->user()->email }}

@csrf
@php $uploadErrors = array_values(array_unique(array_merge( $errors->get('images'), \Illuminate\Support\Arr::flatten($errors->get('images.*')), ))); @endphp
@if ($uploadedImages->isNotEmpty())

{{ $uploadedImages->count() === 1 ? 'Image uploaded successfully' : $uploadedImages->count().' images uploaded successfully' }}

{{ $uploadedImages->count() === 1 ? 'Public Image URL' : 'Public Image URLs' }}

@endif @if ($uploadErrors)

Unable to upload images.

@endif
@if ($subfolders->isNotEmpty())
@foreach ($subfolders as $subfolder) @endforeach
@endif

My Images

Storage Used: {{ $storageUsed }}

@if ($search !== '') Clear @endif
@if ($images->count())
@foreach ($images as $image) @php $previewPayload = [ 'name' => $image->original_name, 'url' => $image->public_url, 'size' => $image->human_size, 'uploaded' => $image->created_at->format('M j, Y'), ]; @endphp @endforeach
{{ $images->links() }}
@else

No images uploaded yet.

Upload your first image above and its public URL will appear here.

@endif
@endsection