Skip to content

Instantly share code, notes, and snippets.

@webexpert4rv
Created March 8, 2016 11:18
Show Gist options
  • Save webexpert4rv/59a2a2c1db96d06c0417 to your computer and use it in GitHub Desktop.
Save webexpert4rv/59a2a2c1db96d06c0417 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
@include('layouts.partials._head')
</head>
<body class="admin_wrapper_main">
<div class="modal fade vp_common_pro_model" id="terms_cond" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="main-container full-height-scroll" full-scroll="">
<section class="pure-text-centered first-child">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<button type="button" id="close-report" class="close" data-dismiss="modal" aria-label="Close"><i class="fa fa-close"></i></button>
<img style="display:none;" width="160px" height="40px" src="{{asset('img/landing/nrgedge_logo.png')}}">
<span class="sub alt-font"> </span>
<h1><strong>TERMS AND CONDITIONS</strong></h1>
<p class="lead">1. ACCEPTANCE OF TERMS
<br>
<br>NRG EDGE PTE LTD provides its services subject to the Terms of Service which may be updated at any time without notice. Terms or Service can be found at https://www.nrgedge.net/terms_of_service.html.
<br>
<br>2. TRADEMARKS, NAMES AND LOGOS
<br>
<br>All trademarks, names and logos used on this site or delivered via NRG EDGE PTE LTD services are owned by NRG EDGE PTE LTD (unless otherwise stated). Your use of these services and site does not allow you to infringe those rights or the rights of the third parties which may exist in material contained in this site. No license is expressly impliedly granted within or as a result of your use of NRG EDGE PTE LTD services or this site. Without NRG EDGE PTE LTD's prior permission, you agree not to display or use in any manner, the NRG EDGE PTE LTD trademarks, names and logo.
<br>
<br>3. CHARGES AND RETURNS
<br>
<br>The NRG EDGE PTE LTD service currently only includes features without charges from NRG EDGE PTE LTD. By purchasing from a merchant coupon, you are purchasing from the promoting merchant and agree to the terms designated by each promotion. Any rewards given by the merchant are provided by the merchant and you agree to the terms designated by each coupon. Any rewards given by a third party providers for a promotion are provided by the third party and you agree to the terms designated by each reward. NRG EDGE PTE LTD is not responsible for refunds if a merchant or third party provider goes out of business or discontinues service with NRG EDGE PTE LTD.
<br>
<br>4. DESCRIPTION OF SERVICE
<br>
<br>NRG EDGE PTE LTD provides a Mobile Service and Web Service to track purchases with participating merchants. You may redeem coupons at the participating merchant according to the terms set by the promotion. You may receive exclusive rewards or promotions in conjunction with their loyalty actions.
<br>
<br>5. MOBILE SERVICE
<br>
<br>You are required to use the latest version of the Mobile Client in order to use the Mobile Service provided by NRG EDGE PTE LTD. The Mobile Client may only be downloaded from official channels provided and approved by NRG EDGE PTE LTD. Only supported devices as defined by the issuing marketplace may use the Mobile Client. NRG EDGE PTE LTD is not responsible or obliged to support any devices that do not meet these standards.
<br>
<br>6. CONTENT
<br>
<br>The promotions displayed within the Mobile Service and Web Service are created by NRG EDGE PTE LTD and content partners. Comments made are generated by its users. NRG EDGE PTE LTD may or may not pre-screen content, but NRG EDGE PTE LTD shall have the right (but not the obligation) in its sole discretion to pre-screen, refuse, or move any content that is available via the service. User comments stored may contain content that people find objectionable, inappropriate, or offensive. NRG EDGE PTE LTD does not assume responsibility for the content presented in the Mobile Service or Web Service.
<br>
<br>7. SUBMISSIONS
<br>
<br>NRG EDGE PTE LTD encourages your comments and suggestions regarding the Mobile Service and Web Service. However, any comments, feedback, notes, messages, ideas, suggestions or other communications (collectively, "Comments") sent by you to NRG EDGE PTE LTD shall be and remain the exclusive property of NRG EDGE PTE LTD. Your submission of any such Comments shall constitute an assignment to NRG EDGE PTE LTD of all worldwide right, title and interest in all copyrights and other intellectual property rights in the Comments. NRG EDGE PTE LTD will be entitled to use, reproduce, disclose, publish and distribute any Comments you submit for any purpose whatsoever, without restriction and without compensating you in any way. For this reason, we ask that you not send us any Comments that you do not wish to assign to us, including any confidential information or any original creative materials such as stories, product ideas, computer code or original artwork. You agree not to submit any Comments that may be submitted in violation of law or any agreement or obligation to keep the content of such Comments confidential. NRG EDGE PTE LTD expressly disclaims any interest in any Comments that you are not authorized to submit. Of course, any information you submit which personally identifies you will be subject to our Privacy Policy.
<br>
<br>8. YOUR REGISTRATION OBLIGATIONS
<br>
<br>In consideration of your use of the Service, you represent that you are of legal age to form a binding contract and are not a person barred from receiving services under the laws of the Singapore, the United States or other applicable jurisdiction. You also agree to: (a) provide true, accurate, current and complete information about yourself as prompted by the Service's registration form (the "Registration Data") and (b) maintain and promptly update the Registration Data to keep it true, accurate, current and complete. If you provide any information that is untrue, inaccurate, not current or incomplete, or NRG EDGE PTE LTD has reasonable grounds to suspect that such information is untrue, inaccurate, not current or incomplete, NRG EDGE PTE LTD has the right to suspend or terminate your account and refuse any and all current or future use of the Service (or any portion thereof).
<br>
<br>9. NRG EDGE PTE LTD PRIVACY POLICY
<br>
<br>Registration Data and certain other information about you is subject to our Privacy Policy. You understand that through your use of the Service you consent to the collection and use (as set forth in the Privacy Policy) of this information, including the transfer of this information to the United States and/or other countries for storage, processing and use by NRG EDGE PTE LTD and its affiliates.
<br>
<br>10. MEMBER ACCOUNT, PASSWORD AND SECURITY
<br>
<br>Upon registration, you will generate a password and account designation or utilize the log in service of partner services such as Facebook, Twitter, LinkedIn to complete the Service's registration process. You are responsible for maintaining the confidentiality of the password and account and are fully responsible for all activities that occur under your password or account. You agree to (a) immediately notify NRG EDGE PTE LTD of any unauthorized use of your password or account or any other breach of security, and (b) ensure that you exit from your account at the end of each session. NRG EDGE PTE LTD cannot and will not be liable for any loss or damage arising from your failure to comply with this Section 9.
<br>
<br>You acknowledge, consent and agree that NRG EDGE PTE LTD may access, preserve and disclose your account information and Content if required to do so by law or in a good faith belief that such access preservation or disclosure is reasonably necessary to: (a) comply with legal process; (b) enforce the Terms of Service; (c) respond to claims that any Content violates the rights of third parties; (d) respond to your requests for customer service; or (e) protect the rights, property or personal safety of NRG EDGE PTE LTD, its users and the public.
<br>
<br>You understand that the technical processing and transmission of the Service, including your Content, may involve (a) transmissions over various networks; and (b) changes to conform and adapt to technical requirements of connecting networks or devices.
<br>
<br>You understand that the Service and software embodied within the Service may include security components that permit digital materials to be protected, and that use of these materials is subject to usage rules set by NRG EDGE PTE LTD and/or content providers who provide content to the Service. You may not attempt to override or circumvent any of the usage rules embedded into the Service. Any unauthorized reproduction, publication, further distribution or public exhibition of the materials provided on the Service, in whole or in part, is strictly prohibited.
<br>
<br>11. TERMINATION
<br>
<br>You agree that NRG EDGE PTE LTD may, under certain circumstances and without prior notice, immediately terminate your NRG EDGE PTE LTD account, any associated coupons, and access to the Service. Cause for such termination shall include, but not be limited to, (a) breaches or violations of the Terms of Service or other incorporated agreements or guidelines, (b) requests by law enforcement or other government agencies, (c) a request by you (self-initiated account deletions), (d) discontinuance or material modification to the Service (or any part thereof), (e) unexpected technical or security issues, (f) extended periods of inactivity, (g) engagement by you in fraudulent or illegal activities, (h) nonpayment of any fees owed by you in connection with the Services. Termination of your NRG EDGE PTE LTD account includes (a) removal of access to all offerings within the Service, including but not limited to nrgedge.net and NRG EDGE PTE LTD mobile app services, (b) deletion of your password and all related information, files and content associated with or inside your account (or any part thereof), and (c) barring of further use of the Service. Further, you agree that all terminations for cause shall be made in NRG EDGE PTE LTD's sole discretion and that NRG EDGE PTE LTD shall not be liable to you or any third party for any termination of your account, any associated messages and NRG EDGE PTE LTD codes, or access to the Service.
<br>
<br>12. THIRD PARTY APPLICATIONS, SERVICES AND CONTENT
<br>
<br>The Service may provide, or third parties may provide, content or services either through the Mobile Client or through a link from the Mobile Client to the Third Party Application. Because NRG EDGE PTE LTD has no control over such content and resources, you acknowledge and agree that NRG EDGE PTE LTD is not responsible for the availability of such content or resources, and does not endorse and is not responsible or liable for any content, advertising, products or other materials on or available from such content or resources. You further acknowledge and agree that NRG EDGE PTE LTD shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such application or resource.
<br>
<br>13. LINKS
<br>
<br>The Service may provide, or third parties may provide, links to other World Wide Web sites or resources. Because NRG EDGE PTE LTD has no control over such sites and resources, you acknowledge and agree that NRG EDGE PTE LTD is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products or other materials on or available from such sites or resources. You further acknowledge and agree that NRG EDGE PTE LTD shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such site or resource.
<br>
<br>14. DISCLAIMER OF WARRANTIES
<br>
<br>NRG EDGE PTE LTD disclaims any and all responsibility or liability for the accuracy, content, completeness, legality, reliability, or operability or availability of information or material displayed in the NRG EDGE PTE LTD Services results. NRG EDGE PTE LTD disclaims any responsibility for the deletion, failure to store, misdelivery, or untimely delivery of any information or material. NRG EDGE PTE LTD disclaims any responsibility for any harm resulting from information or material through the NRG EDGE PTE LTD.
<br>
<br>THE NRG EDGE PTE LTD SERVICES, AND ALL MATERIALS, INFORMATION, PRODUCTS AND SERVICES INCLUDED IN THE NRG EDGE PTE LTD SERVICES ARE PROVIDED "AS IS," WITH NO WARRANTIES WHATSOEVER. NRG EDGE PTE LTD AND ITS SUBSIDIARIES, AFFILIATES, OFFICERS, EMPLOYEES, AGENTS, PARTNERS AND LICENSORS EXPRESSLY DISCLAIM TO THE FULLEST EXTENT PERMITTED BY LAW (i) ALL EXPRESS, IMPLIED, AND STATUTORY WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY RIGHTS (ii) ANY WARRANTIES REGARDING THE SECURITY, RELIABILITY, TIMELINESS, AND PERFORMANCE OF THE NRG EDGE PTE LTD SERVICES (iii) ANY WARRANTIES FOR ANY INFORMATION OR ADVICE OBTAINED THROUGH THE NRG EDGE PTE LTD SERVICES (iv) ANY WARRANTIES FOR SERVICES OR GOODS RECEIVED THROUGH OR ADVERTISED ON THE NRG EDGE PTE LTD SERVICES OR RECEIVED THROUGH ANY INFORMATION PROVIDED BY THE NRG EDGE PTE LTD SERVICES, AS WELL AS FOR ANY INFORMATION OR ADVICE RECEIVED THROUGH ANY INFORMATION PROVIDED IN THE NRG EDGE PTE LTD SERVICES.
<br>
<br>YOU UNDERSTAND AND AGREE THAT YOU DOWNLOAD OR OTHERWISE OBTAIN MATERIAL OR DATA THROUGH THE USE OF THE NRG EDGE PTE LTD SERVICES AT YOUR OWN DISCRETION AND RISK AND THAT YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGES TO YOUR COMPUTER SYSTEM OR TO YOUR MOBILE PHONE OR LOSS OF DATA THAT RESULTS FROM THE DOWNLOAD OF SUCH MATERIAL OR DATA.
<br>
<br>SOME STATES OR OTHER JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSIONS MAY NOT APPLY TO YOU. YOU MAY ALSO HAVE OTHER RIGHTS THAT VARY FROM STATE TO STATE AND JURISDICTION TO JURISDICTION.
<br>
<br>Limitation of Liability
<br>
<br>UNDER NO CIRCUMSTANCES SHALL NRG EDGE PTE LTD OR ITS SUBSIDIARIES, AFFILIATES, OFFICERS, EMPLOYEES, AGENTS, PARTNERS AND LICENSORS BE LIABLE TO ANY USER ON ACCOUNT OF THAT USER'S USE OR MISUSE OF OR RELIANCE ON THE NRG EDGE PTE LTD SERVICES. ARISING FROM ANY CLAIM RELATING TO THIS AGREEMENT OR THE SUBJECT MATTER HEREOF SUCH LIMITATION OF LIABILITY SHALL APPLY TO PREVENT RECOVERY OF DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, EXEMPLARY, AND PUNITIVE DAMAGES WHETHER SUCH CLAIM IS BASED ON WARRANTY, CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, (EVEN IF NRG EDGE PTE LTD OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES). SUCH LIMITATION OF LIABILITY SHALL APPLY WHETHER THE DAMAGES ARISE FROM USE OR MISUSE OF AND RELIANCE ON THE NRG EDGE PTE LTD SERVICES, FROM INABILITY TO USE THE NRG EDGE PTE LTD SERVICES, OR FROM THE INTERRUPTION, SUSPENSION, OR TERMINATION OF THE NRG EDGE PTE LTD SERVICES (INCLUDING SUCH DAMAGES INCURRED BY THIRD PARTIES). THIS LIMITATION SHALL ALSO APPLY WITH RESPECT TO DAMAGES INCURRED BY REASON OF OTHER SERVICES OR GOODS RECEIVED THROUGH OR ADVERTISED ON THE NRG EDGE PTE LTD SERVICES OR RECEIVED THROUGH ANY INFORMATION PROVIDED IN THE NRG EDGE PTE LTD SERVICES, AS WELL AS BY REASON OF ANY INFORMATION OR ADVICE RECEIVED THROUGH OR ADVERTISED ON THE NRG EDGE PTE LTD SERVICES OR RECEIVED THROUGH ANY INFORMATION PROVIDED IN THE NRG EDGE PTE LTD SERVICES. THIS LIMITATION SHALL ALSO APPLY, WITHOUT LIMITATION, TO THE COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, OR LOST DATA. SUCH LIMITATION SHALL FURTHER APPLY WITH RESPECT TO THE PERFORMANCE OR NON-PERFORMANCE OF THE NRG EDGE PTE LTD SERVICES OR ANY INFORMATION OR MERCHANDISE THAT APPEARS ON, OR IS LINKED OR RELATED IN ANY WAY TO, THE NRG EDGE PTE LTD SERVICES. SUCH LIMITATION SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY AND TO THE FULLEST EXTENT PERMITTED BY LAW.
<br>
<br>SOME STATES OR OTHER JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATIONS AND EXCLUSIONS MAY NOT APPLY TO YOU.
<br>
<br>Without limiting the foregoing, under no circumstances shall NRG EDGE PTE LTD or its licensors be held liable for any delay or failure in performance resulting directly or indirectly from acts of nature, forces, or causes beyond its reasonable control, including, without limitation, Internet failures, computer equipment failures, telecommunication equipment failures, other equipment failures, electrical power failures, strikes, labor disputes, riots, insurrections, civil disturbances, shortages of labor or materials, fires, floods, storms, explosions, acts of God, war, governmental actions, orders of domestic or foreign courts or tribunals, non-performance of third parties, or loss of or fluctuations in heat, light, or air conditioning.</p>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
<div id="wrapper" class="admin_layout_wrapper">
<header>
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary mobile_nav " href="javascript:void(0);">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="container-fluid">
<?php //dd(Request::segment(1)) ?>
<div class="row border-bottom">
<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header" >
<a class="admin_logo" href="#"><img src="{{asset('img/landing/nrgedge_logo.png')}}" alt="" /></a>
<form id="additional-info-console" class="navbar-form-custom" role="form" action="{{URL::route('top-search')}}">
<div class="form-group">
<input type="text" placeholder="Search NrgEdge" class="form-control" value="{{ Request::segment(1) == 'top-search'? Request::get('query'): '' }}" name="query" id="top-search">
<input type="hidden" id="top-seach-type" value="{{ Request::segment(1) == 'top-search'? Request::get('type'): 'People' }}" name="type">
<div class="search_listing_wrapper dropdown search_identifier">
<div class="dropdown-toggle count-info custom_select_header" href="" data-toggle="dropdown">
<img src="{{asset('img/admin/header_drop_down.png')}}" alt="" />
<span class="head_select_label">{{ Request::segment(1) == 'top-search'? Request::get('type'): 'People' }}</span>
</div>
<div class="dropdown-menu dropdown-messages head_custom_select_drop">
<ul>
<li class="enabled _msddli_ selected">
<img src="{{asset('img/admin/header_drop_down.png')}}" class="fnone">
<span class="head_select_label">People</span>
</li>
<li class="enabled _msddli_">
<img src="{{asset('img/admin/header_drop_down2.png')}}" class="fnone">
<span class="head_select_label">Article</span>
</li>
<li class="enabled _msddli_">
<img src="{{asset('img/admin/header_drop_down3.png')}}" class="fnone">
<span class="head_select_label">Company</span>
</li>
<li class="enabled _msddli_">
<img src="{{asset('img/admin/header_drop_down4.png')}}" class="fnone">
<span class="head_select_label">Project</span>
</li>
</ul>
</div>
</div>
</div>
<button class="btn btn_danger" id="top-search-button"><i class="fa fa-search"></i></button>
</form>
</div>
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown partial-friend-request">
@include('pages.partial._friend_request_top_nav',['pendingRequests'=>@$profile->pending_request])
</li>
{{-- <li class="dropdown" dropdown>
<a class="dropdown-toggle count-info" href="" data-toggle="dropdown">
<i class="fa fa-bell"></i>
<!--<img src="{{asset('img/admin/head_top_icon2.png')}}" alt="" />-->
<span class="label label-warning">8</span>
</a>
<div class="dropdown-menu dropdown-messages requestvp top_notifications">
<h2>Notifications</h2>
<ul>
<li>
<div class="dropdown-messages-box">
<a ui-sref="profile" class="pull-left user_pro-pic">
<img alt="image" class="img-circle" src="{{asset('img/a7.jpg')}}"></a>
</a>
<div class="user_ingo">
<h3><strong>William Shatner</strong> posted a</h3>
<div class="posted_time">
<span class="not_icons">
<!--<i class="fa fa-file-text"></i>
<img src="{{asset('img/admin/not_icon1.png')}}" alt="" />-->
</span>
<p>23 mins ago</p>
</div>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="dropdown-messages-box">
<a ui-sref="profile" class="pull-left user_pro-pic">
<img alt="image" class="img-circle" src="{{asset('img/a7.jpg')}}"></a>
</a>
<div class="user_ingo">
<h3><strong>William Shatner</strong> created a new post</h3>
<div class="posted_time">
<span class="not_icons">
<!--<i class="fa fa-edit"></i>
<img src="{{asset('img/admin/not_icon2.png')}}" alt="" />-->
</span>
<p>23 mins ago</p>
</div>
</div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="dropdown-messages-box">
<a ui-sref="profile" class="pull-left user_pro-pic">
<img alt="image" class="img-circle" src="{{asset('img/a7.jpg')}}"></a>
</a>
<div class="user_ingo">
<h3><strong>William Shatner</strong> created a new forum
post</h3>
<div class="posted_time">
<span class="not_icons">
<!--<img src="{{asset('img/admin/not_icon3.png')}}" alt="" />-->
</span>
<p>23 mins ago</p>
</div>
</div>
</div>
</li>
</ul>
</div>
</li> --}}
<li class="dropdown" dropdown>
<a class="dropdown-toggle count-info" href="" data-toggle="dropdown">
<i class="fa fa-gear"></i>
<!--<img src="{{asset('img/admin/head_top_icon3.png')}}" alt="" />-->
<span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-messages requestvp top_setting_drop">
<ul>
<li>
<a href="{{URL::to('change-password')}}">
<span class="top_setting_icons">
<i class="fa fa-key"></i>
<!--<img src="{{asset('img/admin/sett_icon1.png')}}" alt="" /></span>-->
<p>Change Password</p>
</a>
</li>
<li class="divider"></li>
<li>
<a href="{{URL::to('privacy-policy')}}">
<span class="top_setting_icons">
<i class="fa fa-lock"></i>
<!--<img src="{{asset('img/admin/sett_icon2.png')}}" alt="" /></span>-->
<p>Privacy Policy</p>
</a>
</li>
<li class="divider"></li>
<li>
<a href="{{URL::to('terms-conditions')}}">
<span class="top_setting_icons">
<i class="fa fa-legal"></i>
<!--<img src="{{asset('img/admin/sett_icon3.png')}}" alt="" /></span>-->
<p>Terms and Condition</p>
</a>
</li>
</ul>
</div>
</li>
<li>
<a class="dropdown-toggle count-info" href="{{URL::to('logout')}}">
<i class="fa fa-sign-out"></i>
<p>Sign out</p>
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
@include('layouts.partials._navbar')
<div id="page-wrapper" class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
@yield('content')
</div>
<!-- admin Footer section -->
<div class="admin_footer_sec">
<a class="admin_footer_logo" href="#"><img src="{{asset('img/landing/nrgedge_logo.png')}}" alt="" /></a>
<ul>
<li><a href="#">About Us</a></li>
<li><a id="term_condition" data-toggle="modal" id="report-model" data-target="#terms_cond" href="javascript:void('0');">Terms and Condition</a></li>
<li><a href="#">Privacy Policy</a></li>
<li>&copy; 2015 NrgEdge Pte Ltd</li>
</ul>
</div>
<!-- admin Footer section -->
</div>
</div>
@include('layouts.partials._footer')
<script>
function global_approved_user(user_id,me){
var count = parseInt($("#incomming-request-count").text());
$("#incomming-request-count").text(--count)
$.ajax({
type: "POST",
url: "{{url('changeConnectionStatus')}}",
data: {receiver_id:user_id,_token:'{{csrf_token()}}','status':$(me).attr('data-status')},
success: function (result) {
if(result != 'error'){myModal
if($(me).attr('data-status') == 'APPROVED'){
$(me).parents('.user_add-btn').html("<a href='javascript:void(0);' class='btn pending_btn on-top-nav' style='cursor: default'>Accepted</a>");
} else{
$(me).parents('.user_add-btn').html("<a href='javascript:void(0);' class='btn pending_btn on-top-nav' style='cursor: default'>Dismissed</a>");
}
}
}
});
}
$(document).ready(function(){
$(document).on('click','.count-info.friend-partial',function(e){
var me = $(this);
if($('.dropdown-menu.dropdown-messages.friend-request:visible').length !=0 ){
$('.dropdown-menu.dropdown-messages.friend-request').hide();
return false;
}
e.preventDefault();
e.stopPropagation();
var url = me.attr('href');
$.ajax({
url:url,
type:'get',
beforeSend: function () {
//Start the spinner
me.parents('form').find('.spinner-company').show();
},
success:function(resp){
$('.dropdown.partial-friend-request').html(resp);
$('.dropdown-menu.dropdown-messages.friend-request').show();
}
})
})
$('ul.nav > li').on('click',function(){
$('ul.nav > li').removeClass('active');
$(this).addClass('active');
});
// Tooltip
$('[data-toggle="tooltip"]').tooltip();
$(document).on('click','.navbar-minimalize',function(){
$('div.sidebar-collapse').parent().toggleClass('sidebar_collapse-cus');
});
$('#side-menu > li').click(function(){
setTimeout(function(){
$('#side-menu > li').each(function(){
if($(this).find('ul.nav-second-level').hasClass('in') && $(this).hasClass('active')) {}
else {
$(this).removeClass('active');
}
});
}, 351)
});
// mobile side bar toggle
$('.mobile_toggle_span').click(function(){
var status = '';
if($(this).parent().next().hasClass('content_hide')){
status = true;
}else{
status = false;
}
$('.main_bg_sec').find('.content_hide').removeClass('content_hide');
$('.main_bg_sec').find('.mobile_toggle_span').removeClass('arrow_down');
if(status == true){
$(this).parent().next().removeClass('content_hide');
$(this).removeClass('arrow_down');
}else{
$(this).parent().next().addClass('content_hide');
$(this).addClass('arrow_down');
}
});
// Mock Drop down for the search
$('.head_custom_select_drop>ul li').click(function(){
var me = $(this);
var searchType = me.find('span').text();
var new_data = $(this).html();
$('#top-seach-type').val(searchType);
$('.custom_select_header').html(new_data);
});
$(function() {
$( ".comp_list_tabs_sec" ).tabs();
});
});
$(document).on('click','#top-search-button',function(e){
e.preventDefault();
var me = $(this);
if($.trim($('#top-search').val()) ==''){
alert('Search field is required');
} else if($('#top-search').val().length < 4 && $('#top-seach-type').val() != 'Company'){
alert('Search keyword should be greater then three character');
}else{
me.parents('form').submit();
}
})
// Custom Dropdown menu
$(document).ready(function(e) {
$("#ver").html(msBeautify.version.msDropdown);
////convert
// $("select").msDropdown({roundedBorder:false});
// $("#tech").data("dd");
//
// // search 2
// $("select").msDropdown({roundedBorder:false});
// $("#tech2").data("dd");
});
function showValue(h) {
//console.log(h.name, h.value);
}
</script>
@yield('scripts')
@yield('prtialscript')
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment