From cd99066ea9e23893ccfd7a9cf98f0cfd284811dc Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Mon, 27 Jan 2025 14:30:25 +0530 Subject: [PATCH] FEAT_CLAIM_MODULE : RV --- app/Config/Routes.php | 11 ++ app/Controllers/TicketController.php | 132 +++++++++++++ app/Models/TicketClaimStatusModel.php | 49 +++++ app/Models/TicketHistoryModel.php | 49 +++++ app/Models/TicketMailTemplateModel.php | 49 +++++ app/Models/TicketMasterModel.php | 49 +++++ app/Models/TicketMessageModel.php | 50 +++++ app/Models/TicketNoteModel.php | 49 +++++ app/Views/layout/header.php | 23 ++- app/Views/ticket_conversation.php | 67 +++++++ app/Views/ticket_edit_onbording.php | 72 ++++++++ app/Views/ticket_form_gmc.php | 246 +++++++++++++++++++++++++ app/Views/ticket_form_gpa.php | 173 +++++++++++++++++ app/Views/ticket_history.php | 33 ++++ app/Views/ticket_list.php | 136 ++++++++++++++ app/Views/ticket_mail_template.php | 174 +++++++++++++++++ app/Views/ticket_note.php | 62 +++++++ app/Views/ticket_reply.php | 67 +++++++ app/Views/ticket_search.php | 170 +++++++++++++++++ 19 files changed, 1660 insertions(+), 1 deletion(-) create mode 100644 app/Controllers/TicketController.php create mode 100644 app/Models/TicketClaimStatusModel.php create mode 100644 app/Models/TicketHistoryModel.php create mode 100644 app/Models/TicketMailTemplateModel.php create mode 100644 app/Models/TicketMasterModel.php create mode 100644 app/Models/TicketMessageModel.php create mode 100644 app/Models/TicketNoteModel.php create mode 100644 app/Views/ticket_conversation.php create mode 100644 app/Views/ticket_edit_onbording.php create mode 100644 app/Views/ticket_form_gmc.php create mode 100644 app/Views/ticket_form_gpa.php create mode 100644 app/Views/ticket_history.php create mode 100644 app/Views/ticket_list.php create mode 100644 app/Views/ticket_mail_template.php create mode 100644 app/Views/ticket_note.php create mode 100644 app/Views/ticket_reply.php create mode 100644 app/Views/ticket_search.php diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 20d56fb4..0ac3773a 100755 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -491,3 +491,14 @@ $routes->group("/bdsReport", ["filter" => "authMVC"], function ($routes) { $routes->get('bap_wise_data/(:any)','BDSReportController::Bap_Wise_Data/$1'); }); + +//New Tickets +$routes->group("/ticket", ["filter" => "authMVC"], function ($routes) { + $routes->match( ['get', 'post'], 'list','TicketController::ticketList'); + $routes->get('new','TicketController::ticket_form'); + $routes->post('create','TicketController::createTicket'); + $routes->get('update','TicketController::updateTicket'); + $routes->get('view/(:any)','TicketController::view_ticket/$1'); + $routes->get('mail_template','TicketController::createMailTemplate'); +}); + diff --git a/app/Controllers/TicketController.php b/app/Controllers/TicketController.php new file mode 100644 index 00000000..f41e53b1 --- /dev/null +++ b/app/Controllers/TicketController.php @@ -0,0 +1,132 @@ +myLogger = \Config\Services::mylogger(); + $this->ticketType = [1 => "Claim-GMC", 2 => "Claim-GPA", 3 => "EDLI", 4 => "GTLI"]; + $this->priorityType = [ + 1 => "Low", + 2 => "Medium", + 3 => "High", + 4 => "Urgent", + 5 => "Emergency", + 6 => "Critical" + ]; + $this->relationshipType = [ + "self" => "Self", + "spouse" => "Spouse", + "son" => "Son", + "daughter" => "Daughter", + "father" => "Father", + "mother" => "Mother", + "father-in-law" => "Father-in-Law", + "mother-in-law" => "Mother-in-Law" + ]; + } + + public function ticketList() + { + if ($this->request->is('get')) { + $data['page_name'] = "Claims"; + $data['ticket_type'] = $this->ticketType; + $data['claim_status'] = []; + $data['client_list'] = []; + + return $this->loadLayout('ticket_search', $data); + + } else{ + + $data['ticket_data'] = $this->ticketSearch(); + $html = view('ticket_list', $data); + return $this->respond(['status' => true, 'html' => $html], 200); + } + } + + public function ticketSearch() + { + $search_data = $this->request->getPost(); + // print_r($search_data); die; + + $data = [ + [ + 'id' => 1, + 'status' => 'Approved', + 'claim_no' => 'CL12345', + 'tpa_id' => 'TPA001', + 'emp_name' => 'John Doe', + 'insurer_name' => 'ABC Insurance', + 'client_name' => 'XYZ Corp', + 'tat' => '5 Days', + ], + [ + 'id' => 2, + 'status' => 'Pending', + 'claim_no' => 'CL12346', + 'tpa_id' => 'TPA002', + 'emp_name' => 'Jane Smith', + 'insurer_name' => 'DEF Insurance', + 'client_name' => 'LMN Ltd', + 'tat' => '3 Days', + ], + [ + 'id' => 3, + 'status' => 'Rejected', + 'claim_no' => 'CL12347', + 'tpa_id' => 'TPA003', + 'emp_name' => 'Alice Johnson', + 'insurer_name' => 'GHI Insurance', + 'client_name' => 'PQR Co', + 'tat' => '7 Days', + ], + ]; + + return $data; + } + + public function ticket_form() + { + $data['ticket_form'] = 1; + return $this->loadLayout('ticket_form_gmc', $data); + } + + public function view_ticket($ticket_id) + { + $data = []; + return $this->loadLayout('ticket_edit_onbording', $data); + } + + public function createTicket() + { + } + + public function updateTicket() + { + } + + public function createMailTemplate() + { + $data = []; + return $this->loadLayout('ticket_mail_template', $data); + } + + +} diff --git a/app/Models/TicketClaimStatusModel.php b/app/Models/TicketClaimStatusModel.php new file mode 100644 index 00000000..d0e959e7 --- /dev/null +++ b/app/Models/TicketClaimStatusModel.php @@ -0,0 +1,49 @@ + - + + +
  • + + + 2 + Claims + +
    + +
  • diff --git a/app/Views/ticket_conversation.php b/app/Views/ticket_conversation.php new file mode 100644 index 00000000..0b34ae71 --- /dev/null +++ b/app/Views/ticket_conversation.php @@ -0,0 +1,67 @@ +
    +
    +
    +
    +
    +
    + +
    +
    +
    RUPESH
    + User +
    +
    +
    +
    +
    +
    16 December 2024 04:15 pm
    +
    +
    + Body
    +
    + +
    +
    +
    +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    Venkatesh HelpDesk Admin
    + Staff +
    +
    +
    +
    +
    +
    24 January 2025 03:41 pm
    +
    +
    +

    hi how are you i am fine

    +
    +
    + +
    +
    + 115.97.253.189 +
    +
    +
    + +
    +
    \ No newline at end of file diff --git a/app/Views/ticket_edit_onbording.php b/app/Views/ticket_edit_onbording.php new file mode 100644 index 00000000..22b50aba --- /dev/null +++ b/app/Views/ticket_edit_onbording.php @@ -0,0 +1,72 @@ + +
    +
    +
    +
    + +
    +
    +

    Ticket

    +
    +
    + + + +
    +
    + + + + + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    +
    +
    + +
    + +
    \ No newline at end of file diff --git a/app/Views/ticket_form_gmc.php b/app/Views/ticket_form_gmc.php new file mode 100644 index 00000000..8c381b92 --- /dev/null +++ b/app/Views/ticket_form_gmc.php @@ -0,0 +1,246 @@ +
    +
    +
    "> +
    + +
    +
    +

    Claim GMC

    +
    +
    + +
    +
    +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    +
    +
    + +
    + +
    + +
    +
    +
    diff --git a/app/Views/ticket_form_gpa.php b/app/Views/ticket_form_gpa.php new file mode 100644 index 00000000..6cac4d51 --- /dev/null +++ b/app/Views/ticket_form_gpa.php @@ -0,0 +1,173 @@ +
    +
    +
    "> +
    + +
    +
    +

    Claim GPA

    +
    +
    + +
    +
    +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + + +
    + + +
    + + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    +
    +
    + +
    +
    + +
    +
    +
    \ No newline at end of file diff --git a/app/Views/ticket_history.php b/app/Views/ticket_history.php new file mode 100644 index 00000000..73e0850b --- /dev/null +++ b/app/Views/ticket_history.php @@ -0,0 +1,33 @@ +
    +
    +
    +
    + + + + + + + + + + + + + $row){ ?> + + + + + + + + + + + +
    FieldOld ValueNew ValueUserDate/Time
    +
    +
    +
    +
    diff --git a/app/Views/ticket_list.php b/app/Views/ticket_list.php new file mode 100644 index 00000000..69bacaf5 --- /dev/null +++ b/app/Views/ticket_list.php @@ -0,0 +1,136 @@ + + +
    +
    +
    +
    +
    +

    Claim List

    +
    + +
    +
    + + + + + + + + + + + + + + + $row){ ?> + + + + + + + + + + + + +
    StatusClaim numberTPA IDEmp nameInsured NameCorporate nameTAT
    + +
    +
    +
    +
    +
    +
    + + + + + + \ No newline at end of file diff --git a/app/Views/ticket_mail_template.php b/app/Views/ticket_mail_template.php new file mode 100644 index 00000000..f48b20d2 --- /dev/null +++ b/app/Views/ticket_mail_template.php @@ -0,0 +1,174 @@ + + +
    +
    +
    +
    +
    +

    Mail Template List

    +
    + +
    +
    + + + + + + + + + + + $row){ ?> + + + + + + + + +
    Template NameStatusPolicy Type
    + +
    +
    +
    +
    +
    +
    + + + + + + \ No newline at end of file diff --git a/app/Views/ticket_note.php b/app/Views/ticket_note.php new file mode 100644 index 00000000..7839c63c --- /dev/null +++ b/app/Views/ticket_note.php @@ -0,0 +1,62 @@ +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/app/Views/ticket_reply.php b/app/Views/ticket_reply.php new file mode 100644 index 00000000..0b719e33 --- /dev/null +++ b/app/Views/ticket_reply.php @@ -0,0 +1,67 @@ +
    +
    +
    +
    +
    +
    + +
    + + +
    + + +
    + + +
    + + +
    + + +
    +
    +
    + + +
    + +
    +
    +
    +
    +
    + + diff --git a/app/Views/ticket_search.php b/app/Views/ticket_search.php new file mode 100644 index 00000000..24317d79 --- /dev/null +++ b/app/Views/ticket_search.php @@ -0,0 +1,170 @@ + + +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    + + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    + + + +
    + +
    +
    +
    +
    + +
    +
    +
    + + +
    + +
    + + + \ No newline at end of file