add api, web view and controller request assignment for data permohonan menu

This commit is contained in:
arifal hidayat
2025-01-28 01:04:41 +07:00
parent 8b77e748ca
commit 14f68c0add
6 changed files with 163 additions and 30 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class RequestAssignmentResouce extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'uuid' => $this->uuid,
'name' => $this->name,
'owner_name' => $this->owner_name,
'application_type' => $this->application_type,
'application_type_name' => $this->application_type_name,
'condition' => $this->condition,
'registration_number' => $this->registration_number,
'document_number' => $this->document_number,
'address' => $this->address,
'status' => $this->status,
'status_name' => $this->status_name,
'slf_status' => $this->slf_status,
'slf_status_name' => $this->slf_status_name,
'function_type' => $this->function_type,
'consultation_type' => $this->consultation_type,
'due_date' => $this->due_date,
'land_certificate_phase' => $this->land_certificate_phase,
'task_created_at' => $this->task_created_at,
];
}
}