demo/app/Modules/Torrent/UI/Web/Views/upload.blade.php
2023-03-23 18:50:47 +01:00

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