diff --git a/app/Helpers/ApiResponse.php b/app/Helpers/ApiResponse.php deleted file mode 100644 index d5827cb..0000000 --- a/app/Helpers/ApiResponse.php +++ /dev/null @@ -1,29 +0,0 @@ -json([ - 'success' => true, - 'message' => $message, - 'data' => $data - ]); - } - - public static function errorResponse($message, $statusCode = 400){ - return response()->json([ - 'success' => false, - 'message' => $message, - ], $statusCode); - } -} diff --git a/app/Http/Controllers/Api/RequestAssignmentController.php b/app/Http/Controllers/Api/RequestAssignmentController.php new file mode 100644 index 0000000..193dcec --- /dev/null +++ b/app/Http/Controllers/Api/RequestAssignmentController.php @@ -0,0 +1,52 @@ +paginate()); + } + + /** + * Store a newly created resource in storage. + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + */ + public function show(string $id) + { + // + } + + /** + * Update the specified resource in storage. + */ + public function update(Request $request, string $id) + { + // + } + + /** + * Remove the specified resource from storage. + */ + public function destroy(string $id) + { + // + } +} diff --git a/app/Http/Controllers/RequestAssignment/PbgTaskController.php b/app/Http/Controllers/RequestAssignment/PbgTaskController.php new file mode 100644 index 0000000..395ca33 --- /dev/null +++ b/app/Http/Controllers/RequestAssignment/PbgTaskController.php @@ -0,0 +1,65 @@ + + */ + 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, + ]; + } +} diff --git a/resources/views/request-assignment/index.blade.php b/resources/views/request-assignment/index.blade.php new file mode 100644 index 0000000..4a6a027 --- /dev/null +++ b/resources/views/request-assignment/index.blade.php @@ -0,0 +1,3 @@ +