filament-docs
Manage your documents and contracts all in one place with template builder
يمتدّ من filament
composer require tomatophp/filament-docs- contracts
- documents
- filament-plugin
- laravel
- manager
اقرأني

Filament Documents Editor
Manage your documents and contracts all in one place with template builder
Version Compatibility
| Plugin | Filament | Laravel | PHP |
|---|---|---|---|
| 5.x | 5.x | 12.x - 13.x | 8.2+ |
| 2.x | 3.x | 10.x - 11.x | 8.1+ |
Features
- Generate Documents From Template
- Build Template using Filament Rich Editor
- Self-contained styled print page (no CDN)
- Add Custom Vars By Facade
- Generate Documents Action
- Documents Filter By Template
- Print Document or Export as PDF
- Documents Relation Manager
- Custom Print Header & Footer
- Custom Print CSS
Screenshots
Try it live on demo.tomatophp.com.


Installation
after install your package please run this command
then register the plugin on /app/Providers/Filament/AdminPanelProvider.php
Using
you can add the action to any table like this
and then you can use $ACCOUNT_NAME in your template
if you like to add a Global Var you can use Facade class like this
as you can see you can use data from selected table or from a static function
Add Fixed Header & Footer to Document Print
if you like to add a fixed header and footer to your document print you can use this method on your AppServiceProvider.php file
Custom CSS on Document Print
the print page ships its own stylesheet (headings, lists, tables, blockquotes, code) and loads nothing from a CDN.
if you like to add a custom css to your document print you can use this method on your AppServiceProvider.php file
Allow Tenants
to allow tenants just use this method
and add this migration
Publish Assets
you can publish config file by use this command
you can publish views file by use this command
you can publish languages file by use this command
you can publish migrations file by use this command
Other Filament Packages
Checkout our Awesome TomatoPHP