{{ __('Media Uploads: ') }} {{ $project->name }}

@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif @php $usedGB = $totalUsed / (1024 * 1024 * 1024); $limitGB = 5; $percentUsed = min(100, ($totalUsed / $limit) * 100); @endphp

Storage Usage

{{ number_format($usedGB, 2) }} GB / {{ $limitGB }} GB

{{ number_format($totalUsed / (1024 * 1024), 1) }} MB used of {{ $limitGB }} GB

{{-- Upload Files (Images, PDFs, Videos, etc.) --}}

Upload Files (Images, PDFs, Videos)

@csrf

Max 5GB. Supports images, PDFs, documents, videos, and audio files.

{{-- Record Live Section --}}

Record Live

{{-- Preview & Recording UI --}}
Click a button above to start recording.
{{-- Uploaded Media List --}}

Uploaded Media

@if($project->media->isEmpty())

No media uploaded yet.

@else
@foreach($project->media as $media) @php $isVideo = str_starts_with($media->mime_type ?? '', 'video/') || in_array($media->media_type, ['camera', 'back_camera']); $isAudio = str_starts_with($media->mime_type ?? '', 'audio/') || $media->media_type === 'voice'; $isImage = str_starts_with($media->mime_type ?? '', 'image/') || $media->media_type === 'image'; $isPdf = $media->mime_type === 'application/pdf' || $media->media_type === 'document'; @endphp
@if($isVideo) @elseif($isImage) {{ $media->file_name }} @elseif($isPdf)
@elseif($isAudio)
@else
@endif

{{ $media->file_name }}

{{ number_format($media->file_size / 1024, 1) }} KB

@csrf @method('DELETE')
@endforeach
@endif