From b5cb4a5de15965151f25bc2688ec1a2bac8fa319 Mon Sep 17 00:00:00 2001 From: bitbucket Date: Thu, 13 Jun 2024 08:11:07 +0530 Subject: [PATCH] GWM --- app/Controllers/MasterController.php | 1 + app/Views/share_docs.php | 58 ++++++++++++++-------------- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/app/Controllers/MasterController.php b/app/Controllers/MasterController.php index 9aaea5f..7d6eb7a 100644 --- a/app/Controllers/MasterController.php +++ b/app/Controllers/MasterController.php @@ -271,6 +271,7 @@ class MasterController extends BaseController ->join('service_group', 'service_group.service_group_id = template.service_group_id', 'left') ->join('client_branch', 'client_branch.id = client_docs.client_branch_id', 'left') ->join('client', 'client.client_id = client_branch.client_id', 'left') + ->orderBy('client_docs.id','DESC') ->findAll(); $data['clientdata'] = $this->ClientBranchModel->select('client.name as client_name , client_branch.name as client_branch_name , client_branch.id as client_branch_id') diff --git a/app/Views/share_docs.php b/app/Views/share_docs.php index eb57c63..1324181 100644 --- a/app/Views/share_docs.php +++ b/app/Views/share_docs.php @@ -66,37 +66,37 @@ - - - - - Approved - - Pending Approval - - Rejected - - - Not Shared - + + + + + Approved + + Pending Approval + + Rejected + + + Not Shared + + + + +