<?php
defined('BASEPATH') or exit('No direct script access allowed');

// ==============================================================//
//                                                               //
//*****************Bagian Kepala Bagian Koperasi*****************//
//                                                               //
// ==============================================================//
// Bagian Kepala Bagian Koperasi
// Menu Dashboard
$route['kabag_marketing']                                                     = 'kabag_marketing/ControllerBeranda';
$route['kabag_marketing/beranda/angsuran/bayar/(:any)']                       = 'kabag_marketing/ControllerBeranda/angsuran_bayar/$1';
// Menu Kelola data
// Menu Data Marketing - DONE
$route['kabag_marketing/data/marketing']                                      = 'kabag_marketing/kelola_data/ControllerDataMarketing';
$route['kabag_marketing/data/marketing/crud']                                 = 'kabag_marketing/kelola_data/ControllerDataMarketing/crud';
$route['kabag_marketing/data/marketing/detail/(:any)']                        = 'kabag_marketing/kelola_data/ControllerDataMarketing/detail/$1';
// Menu Data Anggota Koperasi
$route['kabag_marketing/data/anggota_koperasi']                               = 'kabag_marketing/kelola_data/ControllerDataAnggotaKoperasi';
$route['kabag_marketing/data/anggota/data']                                   = 'kabag_marketing/kelola_data/ControllerDataAnggotaKoperasi/dataview';
$route['kabag_marketing/data/anggota/detail/(:any)']                          = 'kabag_marketing/kelola_data/ControllerDataAnggotaKoperasi/detail/$1';
// Data Kinerja Marketing
$route['kabag_marketing/data/kpi']                                            = 'kabag_marketing/kelola_data/ControllerDataKpi';
$route['kabag_marketing/data/kpi_tgt/(:any)']                                 = 'kabag_marketing/kelola_data/ControllerDataKpi/target/$1';
$route['kabag_marketing/data/kpi_crud']                                       = 'kabag_marketing/kelola_data/ControllerDataKpi/kpi_crud';

// Menu Operasional Kabag Marketing
// Bagian Pinjaman
// Sub Menu Verifikasi Perminataan Kasir 
$route['kabag_marketing/kegiatan/permintaan_pinjaman']                         = 'kabag_marketing/operasional/ControllerPermintaanPinjaman';
$route['kabag_marketing/kegiatan/permintaan_pinjaman/crud']                    = 'kabag_marketing/operasional/ControllerPermintaanPinjaman/crud';
// Sub Menu Verifikasi Pengajuan 
$route['kabag_marketing/kegiatan/pengajuan_pinjaman']                         = 'kabag_marketing/operasional/ControllerPengajuanPinjaman';
$route['kabag_marketing/kegiatan/pengajuan_pinjaman/crud']                    = 'kabag_marketing/operasional/ControllerPengajuanPinjaman/crud';
$route['kabag_marketing/kegiatan/realisasi_pinjaman']                         = 'kabag_marketing/operasional/ControllerPengajuanPinjaman/riwayat';
// Sub Menu View Pinjaman Aktif
$route['kabag_marketing/kegiatan/pinjaman_aktif']                             = 'kabag_marketing/operasional/ControllerAktifPinjaman';
$route['kabag_marketing/kegiatan/kontrak_pinjaman/(:any)']                    = 'kabag_marketing/operasional/ControllerAktifPinjaman/kontrak/$1';
$route['kabag_marketing/kegiatan/kontrak/bayar_lunas/(:any)']                 = 'kabag_marketing/operasional/ControllerAktifPinjaman/bayar_lancar/$1';
$route['kabag_marketing/kegiatan/kontrak/bayar_macet/(:any)']                 = 'kabag_marketing/operasional/ControllerAktifPinjaman/bayar_macet/$1';
// Sub Menu View Pinjaman Macet
$route['kabag_marketing/kegiatan/pinjaman_macet']                             = 'kabag_marketing/operasional/ControllerMacetPinjaman';
// Sub Menu View Pinjaman Lunas
$route['kabag_marketing/kegiatan/pinjaman_lunas']                             = 'kabag_marketing/operasional/ControllerLunasPinjaman';
// Menu Marketing
// Menu Realisasi
$route['kabag_marketing/marketing_aktifitas']                                 = 'kabag_marketing/ControllerAktifitas';
$route['kabag_marketing/marketing_aktifitas/pinjaman/(:any)']                 = 'kabag_marketing/ControllerAktifitas/realisasi/$1';
$route['kabar_marketing/pinjaman_koperasi/realisasi_stroting']                = 'kabag_marketing/ControllerAktifitas/realisasi_stroting';
$route['kabag_marketing/kegiatan/update_kpi/(:any)']                          = 'kabag_marketing/ControllerKPI/update_harian/$1';
$route['kabag_marketing/kegiatan/update_nilai_kpi/(:any)']                    = 'kabag_marketing/ControllerKPI/update_bulanan/$1';
// Bagian KPI
$route['kabag_marketing/upkpi']                                               = 'kabag_marketing/ControllerKPI';
$route['kabag_marketing/pinjaman_koperasi/realisasi_stroting']                = 'kabag_marketing/ControllerKPI/realisasi_stroting';
$route['owner/pinjaman_koperasi/realisasi_stroting']                          = 'owner/laporan/koperasi/ControllerPinjaman/realisasi_stroting';
// Menu Identitas
// Identitas Anggota Koperasi
$route['kabag_marketing/identitas/anggota/(:any)']                            = 'kabag_marketing/ControllerAnggota/anggota/$1';
$route['kabag_marketing/identitas/anggota_arisan/crud']                       = 'kabag_marketing/ControllerAnggota/crud';
$route['kabag_marketing/identitas/myprofile']                                 = 'kabag_marketing/ControllerAnggota';
$route['kabag_marketing/identitas/kpi_update/(:any)']                         = 'kabag_marketing/kelola_data/ControllerDataMarketing/update_kpi/$1';
$route['kabag_marketing/identitas/kpi_update_hasil/(:any)']                   = 'kabag_marketing/kelola_data/ControllerDataMarketing/kpi_update/$1';
$route['kabag_marketing/marketing_aktifitas/kpi_detail/(:any)']               = 'kabag_marketing/kelola_data/ControllerDataMarketing/detail_kpi/$1';
// Menu Salery Kabag Marketing
$route['kabag_marketing/salery']                                              = 'kabag_marketing/kelola_data/ControllerDataSalery';
$route['kabag_marketing/salery/detail/(:any)']                                = 'kabag_marketing/kelola_data/ControllerDataSalery/detail/$1';
// =====================================================================================================================================================================================================
//                                         ###### Bagian Ajax ###### 
// =====================================================================================================================================================================================================
// Ajax Lokasi
// Bagian Kabag Marketing Pinjaman
$route['kabag_marketing/kot_kab']           = 'kabag_marketing/ControllerAlamat/Kot_kab';
$route['kabag_marketing/kecamatan']         = 'kabag_marketing/ControllerAlamat/kecamatan';
$route['kabag_marketing/data/cek_anggota']  = 'kabag_marketing/ControllerAnggota/data_anggota';
