36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
@extends('layouts.master')
|
|
@section('content')
|
|
<x-atomic.card>
|
|
<x-molecule.breadcrumb :items="[
|
|
[
|
|
'href' => 'index',
|
|
'parameters' => null,
|
|
'label' => null,
|
|
'icon' => 'home'
|
|
],
|
|
[
|
|
'label' => 'Torrent upload',
|
|
'mobile' => true
|
|
]
|
|
]" />
|
|
<div class="card-body">
|
|
@include('partials.messages')
|
|
<form action="{{ route('torrent.store') }}" method="post" enctype="multipart/form-data">
|
|
@csrf
|
|
<x-atomic.input-file name="torrent" label="Torrent file" labelAbove>
|
|
{!! button('Upload')->class('btn btn-purple')!!}
|
|
</x-atomic.input-file>
|
|
</form>
|
|
@if(!empty($uuid))
|
|
<div class="d-grid mt-3">
|
|
{!! button('Redownload torrent for seeding')->type('link')
|
|
->href(route('torrent.download', [$uuid]))
|
|
->icon('fas fa-download')
|
|
->class('btn btn-success btn-lg') !!}
|
|
</div>
|
|
@endif
|
|
|
|
</div>
|
|
</x-atomic.card>
|
|
@stop
|