@php $cur = old('provider', $cfg['provider'] ?? 's3'); $pc = $cfg['providers'][$cur] ?? []; $val = fn($k, $d = '') => old('cfg.' . $k, $pc[$k] ?? $d); $hasSecret = !empty($pc['__has_secret']); $hasBunnyKey = !empty($pc['__has_access_key']); $vis = old('visibility', $cfg['visibility'] ?? 'private'); @endphp
{{ __('Admin') }} {{ __('Storage') }}
{{ __('Admin - Media storage') }}

{{ __('Cloud') }} {{ __('storage') }}.

{{ __('Send all client media attachments to your own bucket — Amazon S3, Wasabi, Bunny.net, DigitalOcean Spaces, Cloudflare R2 or any S3-compatible store — instead of the app server. When off, media stays on the local disk, so nothing breaks until you turn it on.') }}

@csrf {{-- Status + master toggle --}}
{{ __('storage · status') }}

{{ __('Cloud media routing') }}

@if ($enabled) {{ __('Active') }} — {{ $activeLabel }}. {{ __('New uploads go to your bucket.') }} @elseif ($hasConfig) {{ __('Configured but turned off.') }} {{ __('Media still on the local disk. Test, then enable.') }} @else {{ __('Local disk (no cloud provider set up yet).') }} @endif

{{-- Credentials --}}
{{ __('credentials') }}

{{ __('Bucket connection') }}

{{ __('Bunny.net only') }}