public function delete($client_id) { try { $client = Client::findOrFail($client_id)->first(); $client->delete(); return $this->respondWithArray(['success' => true, 'message' => 'Client deleted successfully']); } catch (ModelNotFoundException $e) { return $this->setStatusCode(404)->respondWithError('Client with ID ' . $client_id . ' Not found', 404); } }