@if(session('success'))
@endif
@if(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)
{{-- Record Live Section --}}
{{-- Preview & Recording UI --}}
Click a button above to start recording.
{{-- Uploaded Media List --}}
@if($project->media->isEmpty())
@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)
@elseif($isPdf)
@elseif($isAudio)
@else
@endif
{{ $media->file_name }}
{{ number_format($media->file_size / 1024, 1) }} KB
@endforeach
@endif