| <?php | |||||
| namespace App\Http\Controllers\Auth; | |||||
| use Illuminate\Http\Request; | |||||
| use App\Http\Controllers\Controller; | |||||
| use Illuminate\Support\Facades\Auth; | |||||
| use Illuminate\Support\Facades\Log; | |||||
| use App\Staff; | |||||
| use App\Model\StaffDetail; | |||||
| Use Hash; | |||||
| use Carbon\Carbon; | |||||
| use Gate; | |||||
| class EepController extends Controller | |||||
| { | |||||
| // | |||||
| public function get_guard(){ | |||||
| if(Auth::guard('eephr')->check()) | |||||
| {return "eephr";} | |||||
| elseif(Auth::guard('eepsales')->check()){ | |||||
| {return "eepsales";} | |||||
| } | |||||
| } | |||||
| public function showFormAdminEep(){ | |||||
| return view('login_eep'); | |||||
| } | |||||
| public function encryptPassword($action, $string) { | |||||
| $output = false; | |||||
| $encrypt_method = "AES-256-CBC"; | |||||
| $secret_key = '28472B4B6250655368566D5970337336'; | |||||
| $secret_iv = md5(md5($string)); //'This is my secret iv'; | |||||
| // hash | |||||
| $key = hash('sha256', $secret_key); | |||||
| $iv = substr(hash('sha256', $secret_iv), 0, 16); | |||||
| if ( $action == 'encrypt' ) { | |||||
| $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv); | |||||
| $output = base64_encode($output); | |||||
| } else if( $action == 'decrypt' ) { | |||||
| $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv); | |||||
| } | |||||
| return $output; | |||||
| } | |||||
| public function requestLoginAdminEep(Request $request) { | |||||
| $this->validate($request, [ | |||||
| 'email' => 'required|email' | |||||
| // 'password' => 'required|min:6' | |||||
| ]); | |||||
| $user = ''; | |||||
| $roles_access = ''; | |||||
| if($request->roles == 'eephr'){ | |||||
| $roles_access = 'Allo HR'; | |||||
| }else if($request->roles == 'eepsales'){ | |||||
| $roles_access = 'Sales'; | |||||
| } | |||||
| try { | |||||
| $message = trans('messages.invalid_login_credentials'); | |||||
| $rememberMe = false; | |||||
| $user = Staff::where('email', $request->email)->where('roles_access',$roles_access)->first(); | |||||
| if (!empty($user)) { | |||||
| if($this->encryptPassword('encrypt', $request->password) == $user->password){ | |||||
| // Update last_login & last ip | |||||
| $user->last_login_at = Carbon::now(new \DateTimeZone('Asia/Kuala_Lumpur'))->toDateTimeString(); | |||||
| $user->last_login_ip = $request->getClientIp(); | |||||
| $user->save(); | |||||
| if($user->roles_access == "Allo HR"){ | |||||
| Auth::guard('eephr')->loginUsingId($user->_id, $rememberMe); | |||||
| if (Carbon::now()->diffInDays($user->created_at) >= 90) { | |||||
| return $this->expired($user->_id); | |||||
| } | |||||
| else{ | |||||
| return redirect('/eep-hr'); | |||||
| } | |||||
| } | |||||
| else if($user->roles_access == "Sales"){ | |||||
| Auth::guard('eepsales')->loginUsingId($user->_id, $rememberMe); | |||||
| if (Carbon::now()->diffInDays($user->created_at) >= 90) { | |||||
| return $this->expired($user->_id); | |||||
| }else{ | |||||
| return redirect('/eep-sales'); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } catch (\Exception $e) { | |||||
| Log::error(__CLASS__ . "::" . __METHOD__ . " " . $e->getMessage() . "on line" . $e->getLine()); | |||||
| } | |||||
| return redirect('/login/dashboard/eep')->with('error_msg', $message); | |||||
| } | |||||
| public function requestlogout(){ | |||||
| // Get Current member id | |||||
| $id = Auth::guard($this->get_guard())->id(); | |||||
| if (Auth::guard($this->get_guard())->check()) { | |||||
| $user = Staff::find($id); | |||||
| // Update last_login & last ip | |||||
| $user->last_login_at = Carbon::now(new \DateTimeZone('Asia/Kuala_Lumpur'))->toDateTimeString(); | |||||
| $user->last_login_ip = \Request::getClientIp(); | |||||
| $user->save(); | |||||
| // Proceed to Log Out | |||||
| Auth::guard($this->get_guard())->logout(); | |||||
| return redirect('/'); | |||||
| } | |||||
| } | |||||
| public function expired($_id) | |||||
| { | |||||
| $user = Staff::where('_id',$_id)->first(); | |||||
| return view('expiredPassword', compact ('user')); | |||||
| } | |||||
| public function postExpired(Request $request) | |||||
| { | |||||
| $user = Staff::where('_id',$request->_id)->first(); | |||||
| $user->password = $this->encryptPassword('encrypt', $request->password); | |||||
| $user->created_at = Carbon::now()->toDateTimeString(); | |||||
| $user->save(); | |||||
| if($user->roles_access == "Allo HR"){ | |||||
| return redirect('/eep-hr'); | |||||
| } | |||||
| else if($user->roles_access == "Sales"){ | |||||
| return redirect('/eep-sales'); | |||||
| } | |||||
| } | |||||
| } |
| 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, | ||||
| 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, | ||||
| 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, | ||||
| 'EepAuth' => \App\Http\Middleware\EepAuth::class, | |||||
| 'SeepAuth' => \App\Http\Middleware\SeepAuth::class, | |||||
| 'marketAuth' => \App\Http\Middleware\MarketAuth::class, | 'marketAuth' => \App\Http\Middleware\MarketAuth::class, | ||||
| 'dsAuth' => \App\Http\Middleware\DSAuth::class, | 'dsAuth' => \App\Http\Middleware\DSAuth::class, |
| <?php | |||||
| namespace App\Http\Middleware; | |||||
| use Closure; | |||||
| use Illuminate\Support\Facades\Auth; | |||||
| class EepAuth | |||||
| { | |||||
| /** | |||||
| * Handle an incoming request. | |||||
| * | |||||
| * @param \Illuminate\Http\Request $request | |||||
| * @param \Closure $next | |||||
| * @return mixed | |||||
| */ | |||||
| public function handle($request, Closure $next, $guard = 'eephr') | |||||
| { | |||||
| if (!Auth::guard($guard)->check()) { | |||||
| return redirect()->guest('/login/dashboard/eep'); | |||||
| } | |||||
| return $next($request); | |||||
| } | |||||
| } | |||||
| return redirect()->route('aHome'); | return redirect()->route('aHome'); | ||||
| } | } | ||||
| break; | break; | ||||
| case 'eephr' : | |||||
| if (Auth::guard($guard)->check()) { | |||||
| return redirect()->route('eepHome'); | |||||
| } | |||||
| break; | |||||
| default: | default: | ||||
| if (Auth::guard($guard)->check()) { | if (Auth::guard($guard)->check()) { | ||||
| return redirect()->route('home'); | return redirect()->route('home'); |
| <?php | |||||
| namespace App\Http\Middleware; | |||||
| use Closure; | |||||
| use Illuminate\Support\Facades\Auth; | |||||
| class SeepAuth | |||||
| { | |||||
| /** | |||||
| * Handle an incoming request. | |||||
| * | |||||
| * @param \Illuminate\Http\Request $request | |||||
| * @param \Closure $next | |||||
| * @return mixed | |||||
| */ | |||||
| public function handle($request, Closure $next, $guard = 'eepsales') | |||||
| { | |||||
| if (!Auth::guard($guard)->check()) { | |||||
| return redirect()->guest('/login/dashboard/eep'); | |||||
| } | |||||
| return $next($request); | |||||
| } | |||||
| } | |||||
| 'driver' => 'session', | 'driver' => 'session', | ||||
| 'provider' => 'backendAdmin', | 'provider' => 'backendAdmin', | ||||
| ], | ], | ||||
| //added admin alloHR employee engagement program (eep) | |||||
| 'eephr' => [ | |||||
| 'driver' => 'session', | |||||
| 'provider' => 'backendAdmin', | |||||
| ], | |||||
| //added admin tnbHR employee engagement program (tep) | |||||
| 'eepsales' => [ | |||||
| 'driver' => 'session', | |||||
| 'provider' => 'backendAdmin', | |||||
| ], | |||||
| ], | ], | ||||
| /* | /* |
| [0203/120856.312:ERROR:media_internals.cc(112)] Cannot get RenderProcessHost |
| body{ background: url(../assets/img/bg/patterns/pattern6.png) !important; } | body{ background: url(../assets/img/bg/patterns/pattern6.png) !important; } | ||||
| #top { background: url(../assets/img/top/top-purple.jpg) repeat-x 0 0 !important; border-bottom: 1px solid #5b3679; } | #top { background: url(../assets/img/top/top-purple.jpg) repeat-x 0 0 !important; border-bottom: 1px solid #5b3679; } | ||||
| .loginWrapper { width: 350px !important; margin: -9em 0 0 -15em !important; } | .loginWrapper { width: 350px !important; margin: -9em 0 0 -15em !important; } | ||||
| .loginWrapper form { width: 100% !important; } | .loginWrapper form { width: 100% !important; } | ||||
| .loginWrapper input[type=text], .loginWrapper input[type=password] { font-size: 12px !important; width: 310px !important; } | |||||
| .loginWrapper input[type=text], .loginWrapper input[type=password] { border-radius: 3px; font-size: 12px !important; width: 310px !important; } | |||||
| .loginWrapper .feedback .nNote { margin: 0px 0px 25px 0px !important; } | .loginWrapper .feedback .nNote { margin: 0px 0px 25px 0px !important; } | ||||
| .loginWrapper form { position: relative !important; } | .loginWrapper form { position: relative !important; } | ||||
| ul.userNav li { background: #262626 !important; box-shadow: 0 1px 0 #4e4e4e; -webkit-box-shadow: 0 1px 0 #4e4e4e; -moz-box-shadow: 0 1px 0 #4e4e4e; } | |||||
| ul.userNav li { display:inline; background: #262626 !important; box-shadow: 0 1px 0 #4e4e4e; -webkit-box-shadow: 0 1px 0 #4e4e4e; -moz-box-shadow: 0 1px 0 #4e4e4e; } | |||||
| ul.userNav li a.screen { background: url(../assets/img/icons/usernav/screen.png) no-repeat 9px 9px; } | ul.userNav li a.screen { background: url(../assets/img/icons/usernav/screen.png) no-repeat 9px 9px; } | ||||
| ul.userNav li a.settings { background: url(../assets/img/icons/usernav/settings.png) no-repeat 9px 9px; } | ul.userNav li a.settings { background: url(../assets/img/icons/usernav/settings.png) no-repeat 9px 9px; } | ||||
| .bLogin { | .bLogin { | ||||
| border: 1px solid #7e599c; | border: 1px solid #7e599c; | ||||
| border-radius: 3px; | |||||
| box-shadow: 0 1px 2px 0 #563373 inset; | box-shadow: 0 1px 2px 0 #563373 inset; | ||||
| -webkit-box-shadow: 0 1px 2px 0 #563373 inset; | -webkit-box-shadow: 0 1px 2px 0 #563373 inset; | ||||
| -moz-box-shadow: 0 1px 2px 0 #563373 inset; | -moz-box-shadow: 0 1px 2px 0 #563373 inset; | ||||
| } | } | ||||
| .bLogin:hover { opacity: 0.95; filter: alpha(opacity=95); -webkit-transition: opacity 0.2s ease-in-out; -moz-transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out; } | .bLogin:hover { opacity: 0.95; filter: alpha(opacity=95); -webkit-transition: opacity 0.2s ease-in-out; -moz-transition: opacity 0.2s ease-in-out; transition: opacity 0.2s ease-in-out; } | ||||
| .isDisabled { cursor: default; } | |||||
| .isDisabled { cursor: default; } | |||||
| /* # Top part | /* # Top part | ||||
| ================================================== */ | ================================================== */ | ||||
| #top { background: url(../assets/img/bg/top.jpg) repeat-x 0 0; height: 48px; display: block; width: 100%; position: absolute; z-index: 10000; border-bottom: 1px solid #1c1c1c; } | |||||
| #top { background: url(../assets/img/bg/contentTop.png) repeat-x 0 0; height: 48px; display: block; width: 100%; position: absolute; z-index: 10000; border-bottom: 1px solid #1c1c1c; } | |||||
| .logo { float: left; margin-top: 10px; } | .logo { float: left; margin-top: 10px; } | ||||
| .topNav { float: right; position: relative; } | .topNav { float: right; position: relative; } | ||||
| .topSearch input[type=submit], .userSearch input[type=submit] { background: url(../assets/img/sprites/sprite.png); } | .topSearch input[type=submit], .userSearch input[type=submit] { background: url(../assets/img/sprites/sprite.png); } | ||||
| -webkit-animation: pulse 2s infinite; | -webkit-animation: pulse 2s infinite; | ||||
| } | } | ||||
| .loginPic { text-align: center; display: block; position: relative; overflow: hidden; } | |||||
| .loginPic { border-radius: 50% !important; text-align: center; display: block; position: relative; overflow: hidden; } | |||||
| .loginPic span { display: block; color: #5f5f5f; font-size: 14px; margin-top: 10px; font-weight: bold; text-shadow: 0 1px 1px #ffffff; } | .loginPic span { display: block; color: #5f5f5f; font-size: 14px; margin-top: 10px; font-weight: bold; text-shadow: 0 1px 1px #ffffff; } | ||||
| .loginWrapper form { display: block; margin: 0 auto; width: 236px; } | .loginWrapper form { display: block; margin: 0 auto; width: 236px; } | ||||
| .loginWrapper a { display: inline-block; } | .loginWrapper a { display: inline-block; } |
| <div class="formRow"> | <div class="formRow"> | ||||
| <div class="grid2"> </div> | <div class="grid2"> </div> | ||||
| <div class="grid2"><label><b>NRIC : </b></label></div> | <div class="grid2"><label><b>NRIC : </b></label></div> | ||||
| <div class="grid6"><input type="text" name="ic" id="ic" value="{{ old('ic')}}" required /></div> | |||||
| <div class="grid6"><input type="text" name="ic" id="ic" placeholder="999999-99-9999" value="{{ old('ic')}}" required /></div> | |||||
| <div class="grid2"> </div> | <div class="grid2"> </div> | ||||
| </div> | </div> | ||||
| <div class="formRow"> | <div class="formRow"> | ||||
| <div class="grid2"> </div> | <div class="grid2"> </div> | ||||
| <div class="grid2"><label><b>Phone No. : </b></label></div> | <div class="grid2"><label><b>Phone No. : </b></label></div> | ||||
| <div class="grid6"><input type="text" name="phone" id="phone" required value="{{ old('phone')}}"/></div> | |||||
| <div class="grid6"><input type="text" name="phone" id="phone" placeholder="(999) 999-9999" value="{{ old('phone')}}" required/></div> | |||||
| <div class="grid2"> </div> | <div class="grid2"> </div> | ||||
| </div> | </div> | ||||
| @endsection | @endsection | ||||
| @section('external_js') | @section('external_js') | ||||
| <script type="text/javascript"> | |||||
| jQuery(document).ready(function () { | |||||
| $(function(){ | |||||
| 'use strict'; | |||||
| }); | |||||
| // Input Masks | |||||
| $('#phone').mask('(999) 999-9999'); | |||||
| $('#ic').mask('999999-99-9999'); | |||||
| }); | |||||
| </script> | |||||
| @endsection | @endsection |
| @extends('eep-hr.layout.master') | |||||
| @section('ptitle', 'EEP') | |||||
| @section('page_title', 'Dashboard') | |||||
| @section('subpage', 'Graph & Summary Report') | |||||
| @section('img_profile', asset($user->staffDetail->user_pic)) | |||||
| @section('login_name', $user->staffDetail->name ) | |||||
| @section('last_login', $user->last_login_at ) | |||||
| @section('content') | |||||
| <div class="fluid"> | |||||
| <!-- Donut --> | |||||
| <div class="widget grid4 chartWrapper"> | |||||
| <div class="whead"><h6>Form's Statistics Overview</h6></div> | |||||
| <div class="body"><canvas id="pieChart1" width="400" height="400"></canvas></div> | |||||
| </div> | |||||
| <!-- Auto updating chart --> | |||||
| <div class="widget grid8 chartWrapper"> | |||||
| <div class="whead"><h6>Form's Statistics by Month (2019)</h6></div> | |||||
| <div class="body"><center><canvas id="chart1" width="700" height="400"></canvas></center></div> | |||||
| </div> | |||||
| </div> | |||||
| @endsection | |||||
| @section('external_js') | |||||
| <script type="text/javascript"> | |||||
| var total = <?php echo $total ?>; | |||||
| var rec = <?php echo $rec ?>; | |||||
| var dealer = <?php echo $dealer ?>; | |||||
| var normal = <?php echo $normal ?>; | |||||
| var rejected = <?php echo $rejected ?>; | |||||
| var ctx = document.getElementById('pieChart1'); | |||||
| var data = { | |||||
| datasets: [{ | |||||
| fill: true, | |||||
| backgroundColor: [ | |||||
| 'Yellow', | |||||
| 'Green', | |||||
| 'Brown', | |||||
| 'Red', | |||||
| ], | |||||
| hoverBackgroundColor:[ | |||||
| 'Yellow', | |||||
| 'Green', | |||||
| 'Brown', | |||||
| 'Red', | |||||
| ], | |||||
| data: [rec, dealer, normal, rejected] | |||||
| }], | |||||
| // These labels appear in the legend and in the tooltips when hovering different arcs | |||||
| labels: [ | |||||
| 'Total Rectification ('+rec+')', | |||||
| 'Total Dealer ('+dealer+')', | |||||
| 'Total Non Dealer ('+normal+')', | |||||
| 'Total Rejected ('+rejected+')' | |||||
| ] | |||||
| }; | |||||
| var options = { | |||||
| responsive: true, | |||||
| // title: { | |||||
| // display: true, | |||||
| // text: 'What happens when you lend your favorite t-shirt to a girl ?', | |||||
| // position: 'top' | |||||
| // }, | |||||
| // rotation: -0.7 * Math.PI | |||||
| }; | |||||
| var myPieChart = new Chart(ctx, { | |||||
| type: 'doughnut', | |||||
| data: data, | |||||
| options: options | |||||
| }); | |||||
| /***************************************/ | |||||
| var ctx2 = document.getElementById('chart1'); | |||||
| var data = ''; | |||||
| var myChart = new Chart(ctx2, { | |||||
| type: 'bar', | |||||
| data: { | |||||
| labels: ['January', 'Febuary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], | |||||
| datasets: [ | |||||
| { | |||||
| label: '# of Forms Submitted (AEP)', | |||||
| data: <?php echo json_encode($finalD5) ?>, | |||||
| backgroundColor: [ | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)', | |||||
| 'rgba(54, 162, 235, 0.2)' | |||||
| ], | |||||
| borderColor: [ | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)', | |||||
| 'rgba(54, 162, 235, 1)' | |||||
| ], | |||||
| borderWidth: 1 | |||||
| }] | |||||
| }, | |||||
| options: { | |||||
| responsive: false, | |||||
| scales: { | |||||
| xAxes: [{ | |||||
| ticks: { | |||||
| maxRotation: 90, | |||||
| minRotation: 80 | |||||
| }, | |||||
| }], | |||||
| yAxes: [{ | |||||
| ticks: { | |||||
| beginAtZero: true | |||||
| }, | |||||
| }] | |||||
| } | |||||
| } | |||||
| }); | |||||
| </script> | |||||
| @endsection |
| @extends('dealer.layout.master') | |||||
| @section('page_title', 'Dashboard') | |||||
| @section('subpage', 'Graph & Summary Report') | |||||
| @section('img_profile', asset($userDetails->user_pic)) | |||||
| @section('login_name', $userDetails->name ) | |||||
| @section('last_login', $user->last_login_at ) | |||||
| @section('content') | |||||
| <style> | |||||
| .ui-tabs .ui-tabs-nav li.ui-tabs-active a { color: #EA5730 !important; } | |||||
| .ui-widget-content .bRed { color: #fff !important; } | |||||
| </style> | |||||
| <!-- Table dealer --> | |||||
| <div class="fluid"> | |||||
| <!-- Square buttons --> | |||||
| <ul class="middleNavA"> | |||||
| <li><a target="_blank" href="{{ url('/residential/100Mbps/application-form/address').'/'.$user->_id}}" title="100Mbps"> | |||||
| <img src="{{ url('assets/img/category.png') }}" alt="" /><span>100 Mbps</span></a> | |||||
| </li> | |||||
| <li><a target="_blank" href="{{ url('/residential/1Gbps/application-form/address').'/'.$user->_id}}" title="1Gbps"> | |||||
| <img src="{{ url('assets/img/category.png') }}" alt="" /><span>1 Gbps</span></a> | |||||
| </li> | |||||
| </ul> | |||||
| </div> | |||||
| @endsection | |||||
| @section('external_js') | |||||
| @endsection |
| <li> | |||||
| <a href="" title="" class="{{ Request::is('Dealer','Dealer/Agent/add') ? 'active' : '' }}">Dashboard</a> | |||||
| <ul> | |||||
| <li><a href="{{ url('/Dealer') }}">Agents List</a></li> | |||||
| <li><a href="{{ url('/Dealer/Agent/add') }}">Add New Agents</a></li> | |||||
| </ul> | |||||
| </li> | |||||
| <li> | |||||
| <a href="{{ url('/Dealer/Subscription/Form/List') }}" title="" class="exp {{ Request::is('Dealer/Subscription/Form/List') ? 'active' : '' }}">Subscription Form's List</a> | |||||
| </li> | |||||
| <li> | |||||
| <a href="{{ url('/Dealer/Residential/Form') }}" title="" class="exp {{ Request::is('Dealer/Residential/Form','Dealer/Business/Form') ? 'active' : '' }}">Application Form</a> | |||||
| <ul> | |||||
| <li><a href="{{ url('/Dealer/Residential/Form') }}">Residential Package</a></li> | |||||
| </ul> | |||||
| </li> | |||||
| <li> | |||||
| <a href="{{ url('/Dealer/Claim/all') }}" title="" class="exp {{ Request::is('/Dealer/Claim/all') ? 'active' : '' }}">Claim</a> | |||||
| </li> |
| @if (count($breadcrumbs)) | |||||
| <ul id="breadcrumbs" class="breadcrumbs"> | |||||
| @foreach ($breadcrumbs as $breadcrumb) | |||||
| @if ($breadcrumb->url && !$loop->last) | |||||
| @if($breadcrumb->icon != '') | |||||
| <li><a href="{{ $breadcrumb->url }}" title=""><i class="fa fa-home"></i></a></li> | |||||
| @else | |||||
| <li><a href="{{ $breadcrumb->url }}" title="">{{ $breadcrumb->title }}</a></li> | |||||
| @endif | |||||
| @elseif(!$loop->first && !$loop->last) | |||||
| @if($breadcrumb->icon != '') | |||||
| <li><a href="" title=""><i class="fa fa-home"></i></a></li> | |||||
| @else | |||||
| <li><a href="" title="">{{ $breadcrumb->title }}</a></li> | |||||
| @endif | |||||
| @else | |||||
| @if($breadcrumb->icon != '') | |||||
| <li class="current"><a href="" title=""><i class="fa fa-home"></i></a></li> | |||||
| @else | |||||
| <li class="current"><a href="" title="">{{ $breadcrumb->title }}</a></li> | |||||
| @endif | |||||
| @endif | |||||
| @endforeach | |||||
| </ul> | |||||
| @endif |
| <!-- Required Jquery --> | |||||
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |||||
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> | |||||
| <script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/tables/jquery.sortable.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/tables/jquery.resizable.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.autosize.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.uniform.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.inputlimiter.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.tagsinput.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.maskedinput.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.autotab.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.select2.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.dualListBox.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.cleditor.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.ibutton.js') }}"></script> | |||||
| <!-- <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.validationEngine-en.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.validationEngine.js') }}"></script> --> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/plupload.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/plupload.html4.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/plupload.html5.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/jquery.plupload.queue.js') }}"></script> | |||||
| <!-- <script type="text/javascript" src="{{ url('js/plugins/wizards/jquery.form.wizard.js') }}"></script> --> | |||||
| <!-- <script type="text/javascript" src="{{ url('js/plugins/wizards/jquery.validate.js') }}"></script> --> | |||||
| <!-- <script type="text/javascript" src="{{ url('js/plugins/wizards/jquery.form.js') }}"></script> --> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.collapsible.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.breadcrumbs.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.tipsy.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.progress.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.timeentry.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.colorpicker.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.jgrowl.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.fancybox.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.fileTree.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.sourcerer.js') }}"></script> | |||||
| <!--<script type="text/javascript" src="{{ url('js/plugins/others/jquery.fullcalendar.js') }}"></script>--> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/others/moment.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/others/fullcalendar.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/others/jquery.elfinder.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.mousewheel.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.easytabs.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/files/bootstrap.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/files/functions.js') }}"></script> |
| <!-- Required meta tags--> | |||||
| <meta charset="UTF-8"> | |||||
| <meta http-equiv="Content-Type" content="text/html;" /> | |||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> | |||||
| <title>Dashboard - EEP</title> | |||||
| <link rel="icon" href="{{ url('assets/favicon-2.png') }}" type="image/gif"> | |||||
| <!-- Required Fremwork --> | |||||
| <link rel="stylesheet" type="text/css" href="{{ url('css/styles.css') }}"> | |||||
| <!-- Custom Css --> | |||||
| <link rel="stylesheet" type="text/css" href="{{ url('css/main.css') }}"> |
| <div class="mainNav"> | |||||
| <div class="user"> | |||||
| <a title="" class="leftUserDrop"><img src="@yield('img_profile')" alt="" /><span><strong>3</strong></span></a><span>@yield('login_name')</span> | |||||
| <ul class="leftUser"> | |||||
| <li><a href="#" title="" class="sProfile">My profile</a></li> | |||||
| <li><a href="#" title="" class="sMessages">Messages</a></li> | |||||
| <li><a href="{{ url('/dashboard/logout/staff') }}" title="" class="sLogout">Logout</a></li> | |||||
| </ul> | |||||
| </div> | |||||
| <!-- Responsive nav --> | |||||
| <div class="altNav"> | |||||
| <!-- User nav --> | |||||
| <ul class="userNav"> | |||||
| <li><a href="#" title="" class="profile"></a></li> | |||||
| <li><a href="#" title="" class="messages"></a></li> | |||||
| <li><a href="{{ url('/dashboard/logout/staff') }}" title="" class="logout"></a></li> | |||||
| </ul> | |||||
| </div> | |||||
| <!-- Main nav --> | |||||
| <ul class="nav"> | |||||
| <li><a href="{{ url('/dealer') }}" title="" class="{{ Request::is('dealer','dealer/agent/edit-agent/*','dealer/agent/add') ? 'active' : '' }}"><img src="{{ url('assets/img/icons/mainnav/dashboard.png') }}" alt="" /><span>Dashboard</span></a> | |||||
| <ul> | |||||
| <li><a href="{{ url('/dealer') }}"><span class="icos-list"></span>Agents List</a></li> | |||||
| <li><a href="{{ url('/dealer/agent/add') }}"><span class="icos-user2"></span>Add New Agents</a></li> | |||||
| </ul> | |||||
| </li> | |||||
| <li><a href="{{ url('/dealer/subscription/form/list') }}" title="" class="{{ Request::is('dealer/subscription/form/list') ? 'active' : '' }}"><img src="{{ url('assets/img/icons/mainnav/forms.png') }}" alt="" /><span>Subscription Form's List</span></a></li> | |||||
| <li><a href="{{ url('/dealer/residential/form') }}" title="" class="{{ Request::is('dealer/residential/form','dealer/business/form') ? 'active' : '' }}"><img src="{{ url('assets/img/icons/mainnav/forms.png') }}" alt="" /><span>Application Form</span></a></li> | |||||
| <li><a href="{{ url('/dealer/claim/all') }}" title="" class="{{ Request::is('dealer/claim/all') ? 'active' : '' }}"><img src="{{ url('assets/img/icons/mainnav/other.png') }}" alt="" /><span>Claim</span></a> | |||||
| <ul> | |||||
| <li><a href="{{ url('/dealer/residential/form') }}"><span class="icos-money"></span>Residential</a></li> | |||||
| <li><a href="{{ url('/dealer/business/form') }}"><span class="icos-money"></span>Business</a></li> | |||||
| </ul> | |||||
| </li> | |||||
| </ul> | |||||
| </div> |
| <span class="pageTitle"> | |||||
| @if(Request::is('dealer')) | |||||
| <span class="icon-screen"></span>Dashboard | |||||
| @elseif(Request::is('dealer/agent/add','dealer/agent/edit-agent/*')) | |||||
| <span class="icon-clipboard-2"></span>Agent Details | |||||
| @elseif(Request::is('Dealer/Claim/Residential')) | |||||
| <span class="icon-documents"></span>Invoice/Claim (Residential) | |||||
| @elseif(Request::is('Dealer/Claim/Business')) | |||||
| <span class="icon-documents"></span>Invoice/Claim (Business) | |||||
| @elseif(Request::is('dealer/subscription/form/list','slist')) | |||||
| <span class="icon-clipboard-2"></span>Subscription Form List | |||||
| @elseif(Request::is('dealer/residential/form')) | |||||
| <span class="icon-clipboard-2"></span>Residential Package Form | |||||
| @elseif(Request::is('dealer/business/form')) | |||||
| <span class="icon-clipboard-2"></span>Business Package Form | |||||
| @elseif(Request::is('dealer/claim/all')) | |||||
| <span class="icon-documents"></span>Invoice/Claim | |||||
| @endif | |||||
| </span> |
| <!-- Secondary nav --> | |||||
| <div class="secNav"> | |||||
| <div class="secWrapper"> | |||||
| <div class="secTop"> | |||||
| <div class="balance"> | |||||
| <div class="balInfo">Last LogIn: </div> | |||||
| <div class="balAmount"><span class="balBars"></span> | |||||
| <span>@yield('last_login')</span> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <!-- Tabs container --> | |||||
| <div id="tab-container" class="tab-container"> | |||||
| <ul class="iconsLine ic etabs"> | |||||
| <li><a href="#general" title=""><span class="icos-fullscreen"></span></a></li> | |||||
| </ul> | |||||
| <div class="divider"><span></span></div> | |||||
| <div id="general"> | |||||
| @if(Request::is('eephr','/eep-hr')) | |||||
| <ul class="subNav"> | |||||
| <li><a href="{{ url('/eep-hr') }}" title="" class="{{ Request::is('dealer','dealer/agent/edit-agent*') ? 'this' : '' }}"><span class="icos-list"></span>Agent's List</a></li> | |||||
| </ul> | |||||
| @elseif(Request::is('dealer/subscription/form/list')) | |||||
| <!-- Sidebar form --> | |||||
| <div class="sideWidget"> | |||||
| <div class="formRow"> | |||||
| <label><b>Filter by year & month:</b></label> | |||||
| <select class="styled" id="fbyear" name="fbyear"> | |||||
| <option value=''>Please choose year</option> | |||||
| <option value='2018'>2018</option> | |||||
| <option value='2019'>2019</option> | |||||
| <option value='2020'>2020</option> | |||||
| </select> | |||||
| <select class="styled" id="fbmonth" name="fbmonth"> | |||||
| <option value=''>Please choose month</option> | |||||
| <option value='01'>January</option> | |||||
| <option value='02'>February</option> | |||||
| <option value='03'>March</option> | |||||
| <option value='04'>April</option> | |||||
| <option value='05'>May</option> | |||||
| <option value='06'>June</option> | |||||
| <option value='07'>July</option> | |||||
| <option value='08'>August</option> | |||||
| <option value='09'>September</option> | |||||
| <option value='10'>October</option> | |||||
| <option value='11'>November</option> | |||||
| <option value='12'>December </option> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| @elseif(Request::is('dealer/claim/all')) | |||||
| <!-- Sidebar form --> | |||||
| <div class="sideWidget"> | |||||
| <div class="formRow"> | |||||
| <label><b>Filter by year & month:</b></label> | |||||
| <select class="styled" id="fbyear" name="fbyear"> | |||||
| <option value=''>Please choose year</option> | |||||
| <option value='2018'>2018</option> | |||||
| <option value='2019'>2019</option> | |||||
| <option value='2020'>2020</option> | |||||
| </select> | |||||
| <select class="styled" id="fbmonth" name="fbmonth"> | |||||
| <option value=''>Please choose month</option> | |||||
| <option value='01'>January</option> | |||||
| <option value='02'>February</option> | |||||
| <option value='03'>March</option> | |||||
| <option value='04'>April</option> | |||||
| <option value='05'>May</option> | |||||
| <option value='06'>June</option> | |||||
| <option value='07'>July</option> | |||||
| <option value='08'>August</option> | |||||
| <option value='09'>September</option> | |||||
| <option value='10'>October</option> | |||||
| <option value='11'>November</option> | |||||
| <option value='12'>December </option> | |||||
| </select> | |||||
| </div> | |||||
| <div class="formRow"> | |||||
| <label><b>Filter by Application: </b></label> | |||||
| <select class="styled" id="fbapps" name="fbapps"> | |||||
| <option value=''>Please choose application type</option> | |||||
| <option value='Residential'>Residential</option> | |||||
| <option value='Business'>Business</option> | |||||
| </select> | |||||
| </div> | |||||
| </div> | |||||
| @elseif(Request::is('dealer/residential/form','dealer/business/form')) | |||||
| <ul class="subNav"> | |||||
| <li><a href="{{ url('/dealer/residential/form') }}" title="" class="{{ Request::is('dealer/residential/form') ? 'this' : '' }}"><span class="icos-money"></span>Residential Package</a></li> | |||||
| <li><a href="{{ url('/dealer/business/form') }}" title="" class="{{ Request::is('dealer/business/form') ? 'this' : '' }}"><span class="icos-money"></span>Business Package</a></li> | |||||
| </ul> | |||||
| @endif | |||||
| </div> | |||||
| </div> | |||||
| <div class="divider"><span></span></div> | |||||
| </div> | |||||
| </div> |
| <ul class="userNav"> | |||||
| <li><a title="" class="screen disabled isDisabled"></a></li> | |||||
| <li><a title="" class="settings disabled isDisabled"></a></li> | |||||
| <li><a href="{{ url('/dashboard/logout/staff') }}" title="" class="logout"></a></li> | |||||
| <li class="showTabletP"><a href="#" title="" class="sidebar"></a></li> | |||||
| </ul> |
| @extends('eep-hr.layout.master') | |||||
| @section('page_title', 'Dashboard') | |||||
| @section('subpage', 'Graph & Summary Report') | |||||
| @section('img_profile', asset($user->StaffDetail->user_pic)) | |||||
| @section('login_name', $user->StaffDetail->name ) | |||||
| @section('last_login', $user->last_login_at ) | |||||
| @section('content') | |||||
| <style> | |||||
| .ui-tabs .ui-tabs-nav li.ui-tabs-active a { color: #EA5730 !important; } | |||||
| .ui-widget-content .bRed { color: #fff !important; } | |||||
| </style> | |||||
| <!-- Table dealer --> | |||||
| <div class="fluid"> | |||||
| <div class="widget grid2 widgetH"></div> | |||||
| <div class="widget grid8"> | |||||
| <div class="whead"><h6>Agent's List</h6></div> | |||||
| <div id="dyn1" class="shownpars cuss responsive"> | |||||
| <a class="tOptions" title="Options"><img src="{{ url('assets/img/icons/options') }}" alt="" /></a> | |||||
| <table id="agent" cellpadding="0" cellspacing="0" border="0" class="dTable tMedia" width="100%"> | |||||
| <thead> | |||||
| <tr> | |||||
| <th>#</th> | |||||
| <th width="50">Image</th> | |||||
| <th>Name</th> | |||||
| <th>IC</th> | |||||
| <th>Email</th> | |||||
| <th>Phone</th> | |||||
| <th width="90">Actions</th> | |||||
| </tr> | |||||
| </thead> | |||||
| </table> | |||||
| </div> | |||||
| <div class="dialog-delete" title="Delete Agent"> | |||||
| <p id="inner-delete"></p> | |||||
| </div> | |||||
| </div> | |||||
| <div class="widget grid2 widgetH"></div> | |||||
| </div> | |||||
| @endsection | |||||
| @section('external_js') | |||||
| <script> | |||||
| function deleteA(cid,name) { | |||||
| var cid = cid; | |||||
| var name = name; | |||||
| $('.dialog-delete').attr('data-id' , cid); | |||||
| document.getElementById("inner-delete").innerHTML = "<p>Are you sure want to delete this agent ( " + name + " )?</p>"; | |||||
| $('.dialog-delete').dialog('open'); | |||||
| return false; | |||||
| }; | |||||
| $(document).ready(function(){ | |||||
| var origin = window.location.origin; | |||||
| var curr = '{{ $user->_id }}'; | |||||
| //===== Dynamic table toolbars =====// | |||||
| $('#dyn1 .tOptions').click(function () { | |||||
| $('#dyn .tablePars').slideToggle(200); | |||||
| }); | |||||
| $('.tOptions').click(function () { | |||||
| $(this).toggleClass("act"); | |||||
| }); | |||||
| //======= Filter data table ========// | |||||
| $('#agent').DataTable({ | |||||
| "scrollX": true, | |||||
| "bJQueryUI": false, | |||||
| "bAutoWidth": true, | |||||
| "bSort": false, | |||||
| "sPaginationType": "full_numbers", | |||||
| "sDom": '<"tablePars"fl>t<"tableFooter"ip>', | |||||
| "oLanguage": { | |||||
| "sLengthMenu": "<span class='showentries'>Show entries:</span> _MENU_" | |||||
| }, | |||||
| "ordering": false, | |||||
| "serverSide": true, | |||||
| "processing": true, | |||||
| "ajax": "{{ url('/dealer/get-agent-list') }}", | |||||
| "columns": [ | |||||
| { "data": "index","name": "index"}, | |||||
| { "data": "image","name": "image"}, | |||||
| { "data": "name","name": "name"}, | |||||
| { "data": "ic","name": "ic"}, | |||||
| { "data": "email","name": "email"}, | |||||
| { "data": "phone","name": "phone"}, | |||||
| { "data": "action","name": "action"}, | |||||
| ], | |||||
| "columnDefs": [ | |||||
| { | |||||
| "render": function ( data, type, row ) { | |||||
| return '<a href="'+origin+'/assets/img/big.png" title="" class="lightbox"><img src="'+origin+'/'+data+'" alt="" width="37px" height="auto"/></a>'; | |||||
| }, | |||||
| "targets": 1 | |||||
| }, | |||||
| { | |||||
| "render": function ( data, type, row ) { | |||||
| if (data.indexOf("-You") >= 0) { | |||||
| var split = data.split('-'); | |||||
| return '<small class="label label-info">'+split[1]+'</small> '+split[0]; | |||||
| }else if (data.indexOf("New/") >= 0) { | |||||
| var split = data.split('/'); | |||||
| return '<small class="label label-warning">'+split[0]+'</small> '+split[1]; | |||||
| }else { | |||||
| return data; | |||||
| } | |||||
| }, | |||||
| "targets": 2 | |||||
| }, | |||||
| { | |||||
| "render": function ( data, type, row ) { | |||||
| if(data == curr) | |||||
| { | |||||
| var link = "{{ url('/dealer/agent/edit-agent') }}"+"/"+data; | |||||
| return '<a href="'+link+'" class="tablectrl_medium bLightBlue tipS" title="Edit Dealer"><span class="iconb" data-icon=""></span></a>'; | |||||
| }else { | |||||
| var link = "{{ url('/dealer/agent/edit-agent') }}"+"/"+data; | |||||
| return '<a href="'+link+'" class="tablectrl_medium bLightBlue tipS" title="Edit Dealer"><span class="iconb" data-icon=""></span></a> <a class="tablectrl_medium bRed tipS delModule" onclick="deleteA(\''+data+'\',\'' + row.name + '\', )" title="Delete Agent"><span class="iconb" data-icon=""></span></a>'; | |||||
| } | |||||
| }, | |||||
| "targets": 6 | |||||
| }, | |||||
| ], | |||||
| }); | |||||
| //===== Modal =====// | |||||
| $('.dialog-delete').dialog({ | |||||
| autoOpen: false, | |||||
| width: 400, | |||||
| modal: true, | |||||
| buttons: { | |||||
| "Yes!": function () { | |||||
| var cid = $(this).data('id'); | |||||
| $.ajax({ | |||||
| type: "POST", | |||||
| url: "{{url('/dealer/delete-agent')}}", | |||||
| data: { "_token": "{{ csrf_token() }}", id: cid }, | |||||
| success:function(data){ | |||||
| if(data == "true"){ | |||||
| window.location.reload(); | |||||
| }else if(data == "false"){ | |||||
| alert("ERROR!! Cant Delete Agent !"); | |||||
| } | |||||
| } | |||||
| }); | |||||
| }, | |||||
| "Cancel": function () { | |||||
| $(this).dialog("close"); | |||||
| $('.dialog-delete').removeAttr('data-id'); | |||||
| } | |||||
| } | |||||
| }); | |||||
| $('.tipS').tipsy({gravity: 's',fade: true, html:true}); | |||||
| }); | |||||
| </script> | |||||
| @endsection |
| <!DOCTYPE html> | |||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | |||||
| <head> | |||||
| @include('eep-hr.include.header') | |||||
| </head> | |||||
| <body> | |||||
| <!-- Top line begins --> | |||||
| <div id="top"> | |||||
| <div class="wrapper"> | |||||
| <a href="" title="" class="logo"><img src="{{ url('assets/logo/logo-cbb3.png') }}" alt="" /></a> | |||||
| <!-- Right top nav --> | |||||
| <div class="topNav"> | |||||
| @include('eep-hr.include.topmenu') | |||||
| </div> | |||||
| <!-- Responsive nav --> | |||||
| <ul class="altMenu"> | |||||
| @include('eep-hr.include.altMenu') | |||||
| </ul> | |||||
| <!-- Responsive nav --> | |||||
| </div> | |||||
| </div> | |||||
| <!-- Top line ends --> | |||||
| <!-- Sidebar begins --> | |||||
| <div id="sidebar"> | |||||
| @include('eep-hr.include.mainnav') | |||||
| @include('eep-hr.include.sidebar_menu') | |||||
| </div> | |||||
| <!-- Sidebar ends --> | |||||
| <!-- Content begins --> | |||||
| <div id="content"> | |||||
| <div class="contentTop"> | |||||
| @include('eep-hr.include.pagetitle') | |||||
| </div> | |||||
| <!-- Breadcrumbs line --> | |||||
| <div class="breadLine"> | |||||
| <div class="bc"> | |||||
| @include('eep-hr.include.breadcrumbs', ['breadcrumbs' => Breadcrumbs::generate()]) | |||||
| </div> | |||||
| <div class="breadLinks"> | |||||
| <ul> | |||||
| <li><a href="" title=""><i class="icos-list"></i><span>Claim</span></a></li> | |||||
| </ul> | |||||
| </div> | |||||
| </div> | |||||
| <!-- Main content --> | |||||
| <div class="wrapper"> | |||||
| @yield('content') | |||||
| </div> | |||||
| </div> | |||||
| @include('eep-hr.include.footer') | |||||
| @yield('external_js') | |||||
| </body> | |||||
| </html> |
| </div> | </div> | ||||
| @endif | @endif | ||||
| </div> | </div> | ||||
| <!-- New user form --> | <!-- New user form --> | ||||
| @if(Request::is('login/dashboard/staff')) | @if(Request::is('login/dashboard/staff')) | ||||
| <form action="{{ url('/login-dashboard-staff') }}" id="My" method="POST"> | <form action="{{ url('/login-dashboard-staff') }}" id="My" method="POST"> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd') }}"> | |||||
| <html xmlns="http://www.w3.org/1999/xhtml') }}"> | |||||
| <head> | |||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> | |||||
| <title>CBB Dashboard - Employee Engagement Program</title> | |||||
| <link rel="icon" href="{{ url('assets/favicon-2.png') }}" type="image/gif"> | |||||
| <link href="{{ url('css/styles.css') }}" rel="stylesheet" type="text/css" /> | |||||
| <link href="{{ url('css/login.css') }}" rel="stylesheet" type="text/css" /> | |||||
| <!--[if IE]> <link href="css/ie.css" rel="stylesheet" type="text/css') }}"> <![endif]--> | |||||
| <!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js') }}"></script>--> | |||||
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |||||
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/charts/excanvas.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/charts/jquery.flot.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/charts/jquery.flot.orderBars.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/charts/jquery.flot.pie.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/charts/jquery.flot.resize.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/charts/jquery.sparkline.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/tables/jquery.dataTables.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/tables/jquery.sortable.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/tables/jquery.resizable.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.autosize.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.uniform.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.inputlimiter.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.tagsinput.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.maskedinput.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.autotab.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.select2.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.dualListBox.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.cleditor.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.ibutton.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.validationEngine-en.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.validationEngine.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/plupload.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/plupload.html4.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/plupload.html5.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/uploader/jquery.plupload.queue.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/wizards/jquery.form.wizard.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/wizards/jquery.validate.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/wizards/jquery.form.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.collapsible.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.breadcrumbs.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.tipsy.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.progress.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.timeentry.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.colorpicker.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.jgrowl.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.fancybox.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.fileTree.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.sourcerer.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/others/jquery.fullcalendar.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/others/jquery.elfinder.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/forms/jquery.mousewheel.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/plugins/ui/jquery.easytabs.min.js') }}"></script> | |||||
| <script type="text/javascript" src="{{ url('js/files/bootstrap.js') }}"></script> | |||||
| </head> | |||||
| <style type="text/css"> | |||||
| .loginWrapper input[type=email], .loginWrapper input[type=password], .loginWrapper select{ | |||||
| font-size: 12px !important; | |||||
| border-radius: 3px; | |||||
| } | |||||
| .loginWrapper select{ | |||||
| width: 100% !important; | |||||
| color: #858585; | |||||
| box-shadow: 0 0 0px 2px #ebebeb; | |||||
| -webkit-box-shadow: 0 0 0px 2px #ebebeb; | |||||
| -moz-box-shadow: 0 0 0px 2px #ebebeb; | |||||
| padding: 7px 27px 7px 9px; | |||||
| border: 1px solid #d7d7d7; | |||||
| width: 198px; | |||||
| display: inline-block; | |||||
| margin-top: 15px; | |||||
| } | |||||
| .loginSelect { | |||||
| background: #fbfbfb url(../assets/img/icons/loginLock.png) no-repeat 320px 7px !important; | |||||
| } | |||||
| </style> | |||||
| <body> | |||||
| <!-- Top line begins --> | |||||
| <div id="top"> | |||||
| <div class="wrapper"> | |||||
| <a title="" class="logo isDisabled"><img src="{{ url('assets/logo/logo-cbb3.png') }}" alt="" /></a> | |||||
| <!-- Right top nav --> | |||||
| <div class="topNav"> | |||||
| <ul class="userNav') }}"> | |||||
| <a title="" class="logo isDisabled"><img src="{{ url('assets/logo/eep-white.png') }}"></a> | |||||
| <li><a title="" class="screen isDisabled"></a></li> | |||||
| <li><a title="" class="settings isDisabled"></a></li> | |||||
| </ul> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <!-- Top line ends --> | |||||
| <!-- Login wrapper begins --> | |||||
| <div class="loginWrapper"> | |||||
| <div class="feedback"> | |||||
| @if(count($errors) > 0) | |||||
| <div class="nNote nFailure"> | |||||
| @foreach($errors->all() as $error) | |||||
| <p>{{$error}}</p> | |||||
| @endforeach | |||||
| </div> | |||||
| @endif | |||||
| @if(Session::get('error_msg')) | |||||
| <div class="nNote nFailure"> | |||||
| <p>Email or Password is invalid</p> | |||||
| </div> | |||||
| @elseif(Session::get('success_msg')) | |||||
| <div class="nNote nSuccess"> | |||||
| <p>Login successfull. Redirecting...</p> | |||||
| </div> | |||||
| @endif | |||||
| </div> | |||||
| <!-- New user form --> | |||||
| <form action="{{ url('/login-dashboard-admineep') }}" id="My" method="POST"> | |||||
| <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>"> | |||||
| <div class="loginPic" style="margin-bottom: 15px"> | |||||
| <a title="" class="isDisabled"><img src="{{ url('assets/img/userLogin3.png') }}" alt="" /></a> | |||||
| </div> | |||||
| <input type="email" name="email" placeholder="Your Email" class="loginEmail" required /> | |||||
| <input type="password" name="password" placeholder="Password" class="loginPassword" required /> | |||||
| <select name="roles" class="loginSelect" required> | |||||
| <option value="">Please choose roles</option> | |||||
| <option value="eep-hr">Allo HR</option> | |||||
| <option value="eep-sales">Sales</option> | |||||
| </select> | |||||
| <div class="logControl"> | |||||
| <input type="submit" name="signin" value="Login" class="buttonM bLogin" /> | |||||
| </div> | |||||
| </form> | |||||
| </div> | |||||
| <!-- Login wrapper ends --> | |||||
| </body> | |||||
| </html> |
| Route::post('password/post_expired', 'Auth\AdminController@postExpired')->name('password.post_expired'); | Route::post('password/post_expired', 'Auth\AdminController@postExpired')->name('password.post_expired'); | ||||
| Route::get('/login/dashboard/admin', 'Auth\AdminController@showFormAdmin'); | Route::get('/login/dashboard/admin', 'Auth\AdminController@showFormAdmin'); | ||||
| Route::post('/login-dashboard-admin', 'Auth\AdminController@requestLoginAdmin'); | Route::post('/login-dashboard-admin', 'Auth\AdminController@requestLoginAdmin'); | ||||
| Route::get('/dashboard/logout/admin', 'Auth\AdminController@requestlogout'); | Route::get('/dashboard/logout/admin', 'Auth\AdminController@requestlogout'); | ||||
| //Added new login EEP dashboard route | |||||
| Route::get('/login/dashboard/eep' , 'Auth\EepController@showFormAdminEep'); | |||||
| Route::get('/login-dashbord-admineep' , 'Auth\EepController@requestLoginAdminEep'); | |||||
| Route::get('/dashboard/logout/admineep', 'Auth\EepController@requestlogoutEep'); | |||||
| Route::get('/test/email/{subscriber_id}', 'Form\ResidentialController@sendInvoice1'); | Route::get('/test/email/{subscriber_id}', 'Form\ResidentialController@sendInvoice1'); | ||||
| Route::get('/resend-email/{subscriber_id}', 'Form\ResidentialController@resendEmail'); | Route::get('/resend-email/{subscriber_id}', 'Form\ResidentialController@resendEmail'); | ||||
| Route::get('/resend-emailB/{subscriber_id}', 'Form\BusinessController@resendEmail'); | Route::get('/resend-emailB/{subscriber_id}', 'Form\BusinessController@resendEmail'); | ||||
| Route::get('/residential/application-form/success-verified', 'Form\ResidentialController@successVerified'); | Route::get('/residential/application-form/success-verified', 'Form\ResidentialController@successVerified'); | ||||
| Route::get('/business/application-form/success-verified', 'Form\BusinessController@successVerified'); | Route::get('/business/application-form/success-verified', 'Form\BusinessController@successVerified'); | ||||
| // Application Form Residential - Employee Engagement Program | |||||
| Route::get('/residential/{package}/application-form/address', 'Form\ResidentialController@viewFormAddress')->name('residential'); | |||||
| Route::post('/residential/{package}/application-form/information', 'Form\ResidentialController@viewFormApplication')->name('application'); | |||||
| Route::post('/residential/{package}/application-form/service_package', 'Form\ResidentialController@viewFormPackage')->name('package'); | |||||
| Route::post('/residential/{package}/application-form/upload_preview', 'Form\ResidentialController@viewFormPreview')->name('preview'); | |||||
| Route::post('/residential/application-form/store', 'Form\ResidentialController@storeFormData')->name('storeFormR'); | |||||
| Route::get('/check-template-email/{subscriber_id}','Form\ResidentialController@checkEmailTemplate'); | |||||
| Route::get('/application-form/verify-email/{subscriber_id}', 'Form\ResidentialController@verifyEmail'); | |||||
| Route::get('/residential/application-form/success-submit', 'Form\ResidentialController@successSubmit'); | |||||
| Route::get('/residential/application-form/success-verified', 'Form\ResidentialController@successVerified'); | |||||
| // Application Form Business | // Application Form Business | ||||
| Route::get('/business/{package}/application-form/address', 'Form\BusinessController@viewFormAddress')->name('businessForm'); | Route::get('/business/{package}/application-form/address', 'Form\BusinessController@viewFormAddress')->name('businessForm'); | ||||
| Route::post('/business/{package}/application-form/information', 'Form\BusinessController@viewFormApplication')->name('applicationB'); | Route::post('/business/{package}/application-form/information', 'Form\BusinessController@viewFormApplication')->name('applicationB'); | ||||
| }); | }); | ||||
| // Allo HR Employee Engagement Program (Eep) Routes | |||||
| Route::group(['middleware' => 'EepAuth'], function () { | |||||
| Route::get('/eep-hr', ['uses' => 'EEP\EephrController@dashboard', 'as' => 'eepHome']); | |||||
| Route::get('/eep-hr/residential/form', ['uses' => 'EEP\EephrController@showResidentialForm', 'as' => 'residentialFormEEP']); | |||||
| }); | |||||
| // TNB Sales Employee Engagement Program (Eep) Routes |