@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
{{ isset($downloadLink) ? 'Edit' : 'Create' }} Download Link
@csrf @if(isset($downloadLink)) @method('PUT') @endif
Title
Type
type == 'movies' ? 'selected' : '') }}>Movies
type == 'tv_series' ? 'selected' : '') }}>TV Series
type == 'videos' ? 'selected' : '') }}>Videos
Image
@if(isset($downloadLink) && $downloadLink->image)
@else
@endif
Description
{{ old('description', isset($downloadLink) ? $downloadLink->description : '') }}
Status
@if (auth()->id() == 1)
status == 'enabled' ? 'selected' : '') }}>Enabled
status == 'disabled' ? 'selected' : '') }}>Disabled
@else
{{ isset($downloadLink) ? ucfirst($downloadLink->status) : 'Not set' }}
@endif
Types
@if(isset($downloadLink) && $downloadLink->types->count()) @foreach($downloadLink->types as $type)
Delete
@endforeach @else
Add
@endif
Add
{{ isset($downloadLink) ? 'Update' : 'Submit' }}