@extends('components.app-layout') @section('title', 'Upload Document') @section('content')
Documents @if($selectedCategory) @foreach($selectedCategory->breadcrumbs as $breadcrumb) {{ $breadcrumb->name }} @if(!$loop->last) @endif @endforeach @endif Upload Document

Upload Document @if($selectedCategory) to {{ $selectedCategory->name }} @endif

Add a new document to your Church management system @if($selectedCategory) in the {{ $selectedCategory->isFolder() ? 'folder' : 'category' }} "{{ $selectedCategory->name }}" @endif

@csrf
@error('title')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror
@error('document_category_id')

{{ $message }}

@enderror @if($categories->isEmpty())
No categories available. Create a category first
@endif

or drag and drop

PDF, DOC, DOCX, TXT, JPG, JPEG, PNG up to 10MB

@error('file')

{{ $message }}

@enderror
Cancel
@push('scripts') @endpush @endsection