Skip to content

AIArmada/filament-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filament Docs

Latest Version on Packagist Total Downloads

Filament admin panel integration for the AIArmada Docs package. Manage invoices, receipts, document templates, and PDF generation directly from your Filament panel.

Features

  • 📄 Document Management - Full CRUD for invoices and receipts
  • 📝 Template System - Create and manage document templates with PDF settings
  • 📊 Status Tracking - Track document lifecycle with status history
  • 📥 PDF Generation - Generate and download PDFs with one click
  • 🔍 Advanced Filtering - Filter by type, status, date, and more
  • Bulk Actions - Generate PDFs and update status for multiple documents

Requirements

Installation

composer require aiarmada/filament-docs

Register the plugin in your Filament panel:

use AIArmada\FilamentDocs\FilamentDocsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentDocsPlugin::make(),
        ]);
}

Publish the configuration (optional):

php artisan vendor:publish --tag=filament-docs-config

Resources

DocResource

Manage documents with:

  • List View - Sortable columns, advanced filters, search by document number/customer
  • Create/Edit - Customer data, line items repeater, auto-calculated totals
  • View Page - Document details, status actions, PDF download
  • Relation Manager - View complete status history

DocTemplateResource

Manage document templates with:

  • Template Settings - Name, slug, document type, default designation
  • PDF Configuration - Paper format, orientation, margins
  • Usage Statistics - Track how many documents use each template

Actions

Action Description
Generate PDF Create or regenerate document PDF
Download PDF Download the generated PDF file
Mark as Sent Update status to sent
Mark as Paid Record payment with timestamp
Cancel Cancel the document
Set as Default Make template the default for its type

Configuration

// config/filament-docs.php
return [
    'navigation' => [
        'group' => 'Documents',
    ],

    'features' => [
        'auto_generate_pdf' => true,
    ],

    'resources' => [
        'navigation_sort' => [
            'docs' => 10,
            'doc_templates' => 20,
            'sequences' => 90,
            'email_templates' => 91,
            'pending_approvals' => 15,
            'aging_report' => 100,
        ],
    ],
];

Documentation

See the docs folder for detailed documentation:

License

The MIT License (MIT). Please see LICENSE for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors