- Refactored cooperation workflow to include manual status transitions. - Implemented payment tracking with CooperationPayment model and PayAction. - Updated UpdateCooperationStatusCommand for automatic assignment and verification transitions. - Removed deprecated date columns (assignment_deadline, verification_deadline). - Enhanced Filament UI with new actions (Complete, Proceed to Payment, Pay). - Added CooperationSeeder for testing purposes.
24 lines
595 B
PHP
24 lines
595 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Manage\Cooperations\Pages;
|
|
|
|
use App\Filament\Resources\Manage\Cooperations\CooperationResource;
|
|
use Filament\Actions\Action;
|
|
use Filament\Resources\Pages\ViewRecord;
|
|
|
|
class ViewCooperation extends ViewRecord
|
|
{
|
|
protected static string $resource = CooperationResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Action::make('back')
|
|
->label('Kembali')
|
|
->url(ListCooperations::getUrl())
|
|
->outlined()
|
|
->color('secondary'),
|
|
];
|
|
}
|
|
}
|