Added courier inward and outward in page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Larastan / larastan (pull_request) Failing after 6m8s
Laravel Pint / pint (pull_request) Successful in 4m13s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Larastan / larastan (pull_request) Failing after 6m8s
Laravel Pint / pint (pull_request) Successful in 4m13s
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Filament\Resources;
|
||||
|
||||
use App\Filament\Exports\CourierInwardExporter;
|
||||
use App\Filament\Imports\CourierInwardImporter;
|
||||
use App\Filament\Resources\CourierInwardResource\Pages;
|
||||
use App\Filament\Resources\CourierInwardResource\RelationManagers;
|
||||
use App\Models\CourierInward;
|
||||
@@ -14,6 +16,8 @@ use Filament\Tables;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
use Filament\Tables\Actions\ExportAction;
|
||||
use Filament\Tables\Actions\ImportAction;
|
||||
|
||||
class CourierInwardResource extends Resource
|
||||
{
|
||||
@@ -192,6 +196,22 @@ class CourierInwardResource extends Resource
|
||||
Tables\Actions\ForceDeleteBulkAction::make(),
|
||||
Tables\Actions\RestoreBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->headerActions([
|
||||
ImportAction::make()
|
||||
->label('Import Courier Inward')
|
||||
->color('warning')
|
||||
->importer(CourierInwardImporter::class)
|
||||
->visible(function () {
|
||||
return Filament::auth()->user()->can('view import courier inward');
|
||||
}),
|
||||
ExportAction::make()
|
||||
->label('Export Courier Inward')
|
||||
->color('warning')
|
||||
->exporter(CourierInwardExporter::class)
|
||||
->visible(function () {
|
||||
return Filament::auth()->user()->can('view export courier inward');
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user