@extends('admin.layout') @section('heading','Storage Settings') @section('content')
<form class="panel form-grid" method="post" action="{{route('admin.storage.update')}}">@csrf
<h2>Media Storage</h2>
<label>Storage Driver<select name="storage_driver"><option value="local" @selected(($s['storage_driver']??'local')==='local')>Local Public Storage</option><option value="bunny" @selected(($s['storage_driver']??'')==='bunny')>Bunny Storage</option></select></label>
<label>Bunny Storage Zone<input name="bunny_storage_zone" value="{{$s['bunny_storage_zone']??''}}" autocomplete="off"></label>
<label>Bunny Storage Host<input name="bunny_storage_host" value="{{$s['bunny_storage_host']??'storage.bunnycdn.com'}}" placeholder="storage.bunnycdn.com"></label>
<label>Bunny Access Key<input type="password" name="bunny_access_key" placeholder="Leave blank to keep existing key" autocomplete="new-password"></label>
<label>Bunny Custom CDN Domain<input name="bunny_custom_domain" value="{{$s['bunny_custom_domain']??''}}" placeholder="https://cdn.example.com"></label>
<p class="hint">TMDB images are downloaded once and saved to the selected storage. The Access Key is encrypted using APP_KEY.</p><button class="primary">Save Storage</button></form>
<form method="post" action="{{route('admin.storage.test')}}" style="margin-top:14px">@csrf<button class="secondary">Test Connection</button></form>
@endsection