@extends('themes.base.layout') @section('title', trans('admin.create_storage')) @section('breadcrumb') @endsection @section('content')

@lang('admin.create_storage')

@lang('admin.create_storage_intro')


{!! Form::open(['route' => 'storage.store', 'method' => 'POST']) !!}
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!} {!! Form::text('name', old('name'), ['class' => 'form-control']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('source', trans('forms.storage_driver_label'), ['class' => 'control-label']) !!} {!! Form::select('source', $album_sources, old('source'), ['class' => 'form-control', 'data-bind' => 'value: selectedLocation']) !!}
{!! Form::label('location', trans('forms.storage_location_label'), ['class' => 'control-label']) !!} {!! Form::text('location', old('location', $filesystem_default_location), ['class' => 'form-control']) !!} @if ($errors->has('location')) {{ $errors->first('location') }} @endif
{!! Form::label('auth_url', trans('forms.storage_auth_url_label'), ['class' => 'control-label']) !!} {!! Form::text('auth_url', old('auth_url'), ['class' => 'form-control']) !!} @if ($errors->has('auth_url')) {{ $errors->first('auth_url') }} @endif
{!! Form::label('tenant_name', trans('forms.storage_tenant_name_label'), ['class' => 'control-label']) !!} {!! Form::text('tenant_name', old('tenant_name'), ['class' => 'form-control']) !!} @if ($errors->has('tenant_name')) {{ $errors->first('tenant_name') }} @endif
{!! Form::label('username', trans('forms.username_label'), ['class' => 'control-label']) !!} {!! Form::text('username', old('username'), ['class' => 'form-control']) !!} @if ($errors->has('username')) {{ $errors->first('username') }} @endif
{!! Form::label('password', trans('forms.password_label'), ['class' => 'control-label']) !!} {!! Form::text('password', old('password'), ['class' => 'form-control']) !!} @if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::label('service_name', trans('forms.storage_service_name_label'), ['class' => 'control-label']) !!} {!! Form::text('service_name', old('service_name'), ['class' => 'form-control']) !!} @if ($errors->has('service_name')) {{ $errors->first('service_name') }} @endif
{!! Form::label('service_region', trans('forms.storage_service_region_label'), ['class' => 'control-label']) !!} {!! Form::text('service_region', old('service_region'), ['class' => 'form-control']) !!} @if ($errors->has('service_region')) {{ $errors->first('service_region') }} @endif
{!! Form::label('container_name', trans('forms.storage_container_name_label'), ['class' => 'control-label']) !!} {!! Form::text('container_name', old('container_name'), ['class' => 'form-control']) !!} @if ($errors->has('container_name')) {{ $errors->first('container_name') }} @endif
{!! Form::label('cdn_url', trans('forms.storage_cdn_url_label'), ['class' => 'control-label']) !!} {!! Form::text('cdn_url', old('cdn_url'), ['class' => 'form-control']) !!} @if ($errors->has('cdn_url')) {{ $errors->first('cdn_url') }} @endif
@lang('forms.cancel_action') {!! Form::submit(trans('forms.create_action'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}
@endsection @push('scripts') @endpush