multiple bug fixes including sender ID filtering

This commit is contained in:
Kwesi Banson Jnr
2026-04-16 14:22:04 +00:00
parent 72180de8e4
commit 5dbe76dbd4
380 changed files with 175085 additions and 203 deletions

View File

@@ -28,38 +28,16 @@
<div class="x_content">
<br>
{!! Form::open(['url' => 'dailyquotes', 'id' => 'dailyQuoteCreateForm', 'class' => 'form-horizontal form-label-left']) !!}
<div class="row">
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="quoteIDD">dailyquote ID</label>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="quoteIDD">Quote</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('quote') ? 'has-error' : ''}}">
{!! Form::text('quote', old('quote'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter quote , 'id' => 'quoteIDD', 'required' => 'true']) !!}
{!! Form::textarea('quote', old('quote'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter quote', 'id' => 'quoteIDD', 'required' => 'true']) !!}
{!! $errors->first('quote', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="directMno">Direct MNO</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('direct_mno') ? 'has-error' : ''}}">
{!! Form::select('direct_mno', $direct_mno_arr ,old('direct_mno'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select one ' , 'id' => 'directMno', 'required' => 'true']) !!}
{!! $errors->first('direct_mno', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group " id="mnoDiv">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="networkName">MNO Name</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('network') ? 'has-error' : ''}}">
{!! Form::select('mno_name', $network_arr, old('mno_name'), ['class' => 'form-control col-md-7 col-xs-12', 'id' => 'networkName', 'placeholder' => '-- Select --', 'required' => 'true', 'style' => 'width:100%;']) !!}
{!! $errors->first('network', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group " id="supplierDiv">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="supplierName">Supplier Name</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
<!-- 'required' => 'true', -->
{!! Form::select('supplier_name', $clients, old('supplier_name'), ['class' => 'form-control', 'id' => 'supplierName', 'placeholder' => '-- Select --', 'style' => 'width:100%;']) !!}
{!! $errors->first('client_id', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="status">Status</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('status') ? 'has-error' : ''}}">
@@ -68,10 +46,17 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="remarks">Remarks</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('remarks') ? 'has-error' : ''}}">
{!! Form::text('remarks', old('remarks'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter remarks here' , 'id' => 'remarks']) !!}
{!! $errors->first('remarks', '<p class="help-block">:message</p>') !!}
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="author">Author</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('author') ? 'has-error' : ''}}">
{!! Form::text('author', old('author'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter author name' , 'id' => 'author']) !!}
{!! $errors->first('author', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="quoteDate">Quote Date</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('quote_date') ? 'has-error' : ''}}">
{!! Form::text('quote_date', old('quote_date'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select date' , 'id' => 'quoteDate']) !!}
{!! $errors->first('quote_date', '<p class="help-block">:message</p>') !!}
</div>
</div>
@@ -80,7 +65,7 @@
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
&nbsp;
<button type="button" class="btn btn-warning btn-block" id="resetBtn"><i class="fa fa-save"></i> Reset</button>
<button type="reset" class="btn btn-warning btn-block" id="resetBtn"><i class="fa fa-save"></i> Reset</button>
</div>
</div>

View File

@@ -0,0 +1,146 @@
@extends('layouts.master')
@section('page_title')
@if(isset($page_title))
{{ $page_title }}
@endif
@endsection
@section('css')
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
@endsection
@section('content')
<div class="">
<div class="page-title">
<div class="title_left">
<div class="title_left">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li class="active">Daily Quotess</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('dailyquotes') !!}">
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
</div>
</div>
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
<div class="input-group">
<input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
</span>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-sm-12">
<div class="pull-right"></div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
@include('commons.notifications')
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2> Daily Quotess </h2>
<div class="pull-right">
<a class="btn btn-warning btn-sm" href="{!! url('dailyquotes') !!}"><i class="fa fa-refresh"></i> Reset Filter</a>
<a class="btn btn-primary btn-sm" href="{!! url('dailyquotes/create') !!}"><i class="fa fa-plus-circle"></i> New Daily Quotes</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div id="">
<table class="table table-striped projects">
<thead>
<tr>
<th style="width: 35%">Quote</th>
<th>Author </th>
<th>Quote Date </th>
<th>Status</th>
<th style="width: 15%">#Action</th>
</tr>
</thead>
<tbody>
@if(count($quote_arr) > 0)
@foreach($quote_arr as $row)
<tr>
<td>
{{ $row->quote }}
</td>
<td>
{{ $row->author }}
</td>
<td>
{{ $row->quote_date }}
</td>
<td>
<button type="button" class="btn btn-<?php echo ($row->status == 'active') ? 'success' : 'warning'; ?> btn-xs">{{ ucfirst($row->status) }}</button>
</td>
<td>
<a href="#" class="btn btn-info btn-xs"><i class="fa fa-pencil"></i> Edit </a>
<a href="#" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> Delete </a>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="5">No records</td>
</tr>
@endif
</tbody>
</table>
{{-- Pagination Links --}}
<div class="pagination-links">
{{ $quote_arr->links() }} {{-- This will render Bootstrap compatible links by default in L5 --}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
<script type="text/javascript">
$(document).ready(function(){
document.getElementById("dailyquotes-download-xlsx").addEventListener("click", function(){
table.download("xlsx", "dailyquotes-list.xlsx", {sheetName:"Sheet 1"});
});
//trigger download of data.pdf file
document.getElementById("dailyquotes-download-pdf").addEventListener("click", function(){
table.download("pdf", "client-list.pdf", {
orientation:"portrait", //set page orientation to portrait
title:"Click Mobile - Daily Quotes", //add title to report
});
});
$('#keywordField').on('keyup', function(){
console.log('up');
var keyword = $(this).val();
table.setData("dailyquotes/all?keyword=" + keyword);
});
});
</script>
@endsection

View File

@@ -14,14 +14,14 @@
<div class="title_left">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li class="active">Sender IDs</li>
<li class="active">Daily Quotess</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('senderids') !!}">
<form method="GET" action="{!! url('dailyquotes') !!}">
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
</div>
@@ -50,29 +50,19 @@
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2> Sender IDs </h2>
<h2> Daily Quotess </h2>
<div class="pull-right">
<a class="btn btn-warning btn-sm" href="{!! url('senderids/upload') !!}"><i class="fa fa-cloud-upload"></i> Upload Sender IDs</a>
<a class="btn btn-primary btn-sm" href="{!! url('senderids/create') !!}"><i class="fa fa-plus-circle"></i> New Sender ID</a>
<a class="btn btn-success btn-sm" href="{!! url('senderids/exportall') !!}"><i class="fa fa-plus-circle"></i> Download All</a>
<a class="btn btn-warning btn-sm" href="{!! url('dailyquotes/upload') !!}"><i class="fa fa-cloud-upload"></i> Upload Daily Quotess</a>
<a class="btn btn-primary btn-sm" href="{!! url('dailyquotes/create') !!}"><i class="fa fa-plus-circle"></i> New Daily Quotes</a>
<a class="btn btn-success btn-sm" href="{!! url('dailyquotes/exportall') !!}"><i class="fa fa-plus-circle"></i> Download All</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
@if(session('current_user.rejected_rows_filename') !== null)
<div class=" well" >
<?php $url = session('current_user.rejected_rows_filename');?>
<a href="{{ url('senderids/uploadreportdownload', $url) }}" class="btn btn-link">View Sender ID Bulk Upload Report</a>
</div>
@endif
<div class="x_content">
<div>
<!-- <button id="senderid-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
<button id="senderid-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button> -->
</div>
<div id="senderIdsTable"></div>
<div id="dailyQuotesTable"></div>
</div>
</div>
</div>
@@ -92,7 +82,7 @@
function link(cell, formatterParams){
var url = cell.getValue();
var rowID = cell.getData().id
return "<a href='"+ base_url + "/senderids/"+rowID+"/edit' class='btn btn-link'>"+url+"</a>";
return "<a href='"+ base_url + "/dailyquotes/"+rowID+"/edit' class='btn btn-link'>"+url+"</a>";
}
function cellDesign (cell, formatterParams){
var value = cell.getValue();
@@ -103,10 +93,10 @@
// if(value === 'Approved'){
// console.log(value !== null);
if (value !== null) {
if(value.includes('Approved')){
if(value.includes('inactive')){
return "<span style='color:#3FB449; font-weight:bold;'>" + value + "</span>";
}
else if(value.includes('Active')){
else if(value.includes('active')){
return "<span style='color:#3FB449; font-weight:bold;'>" + value + "</span>";
}
else{
@@ -114,8 +104,8 @@
}
}
}
var table = new Tabulator("#senderIdsTable", {
ajaxURL: "senderids/all",
var table = new Tabulator("#dailyQuotesTable", {
ajaxURL: "dailyquotes/all",
paginationSize: 15,
layout: "fitColumns",
pagination: "remote",
@@ -125,49 +115,34 @@
columns: [
{
title: "Sender ID",
field: "senderid",
title: "Quotes",
field: "quote",
sorter: "string",
formatter: cellDesign,
formatter:link,
// formatter: cellDesign,
// formatter:link,
},
{
title: "Direct MNO",
field: "direct_mno",
title: "Author",
field: "author",
sorter: "string",
},
{
title: "Network",
field: "mno_name",
sorter: "string",
},
{
title: "Supplier",
field: "supplier_name",
title: "Quote Date",
field: "quote_date",
sorter: "string",
},
{
title: "Status",
field: "status",
sorter: "string",
formatter: statusDesign,
},
},
{
title: "Remarks",
field: "remarks",
sorter: "string",
formatter: statusDesign,
},
{
title: "Created By",
field: "createdBy",
title: "Added By",
field: "addedBy",
sorter: "string",
},
// {
// title: "Last Modified By",
// field: "modifiedBy",
// sorter: "string",
// }
],
rowClick:function(e, row){
@@ -176,20 +151,20 @@
//$('#userEditModal').modal('show');
},
});
document.getElementById("senderid-download-xlsx").addEventListener("click", function(){
table.download("xlsx", "senderid-list.xlsx", {sheetName:"Sheet 1"});
document.getElementById("dailyquotes-download-xlsx").addEventListener("click", function(){
table.download("xlsx", "dailyquotes-list.xlsx", {sheetName:"Sheet 1"});
});
//trigger download of data.pdf file
document.getElementById("senderid-download-pdf").addEventListener("click", function(){
document.getElementById("dailyquotes-download-pdf").addEventListener("click", function(){
table.download("pdf", "client-list.pdf", {
orientation:"portrait", //set page orientation to portrait
title:"Click Mobile - Sender ID", //add title to report
title:"Click Mobile - Daily Quotes", //add title to report
});
});
$('#keywordField').on('keyup', function(){
console.log('up');
var keyword = $(this).val();
table.setData("senderids/all?keyword=" + keyword);
table.setData("dailyquotes/all?keyword=" + keyword);
});

View File

@@ -74,10 +74,11 @@
<div class="col-md-6" style="overflow:hidden;">
<span class="sparkline_one" style="height: 160px; padding: 10px 25px;">
<blockquote id="dailyQuoteBlock">
Carry out a random act of kindness, with no expectation of reward, safe in the knowledge that one day someone might do the same for you.
{{ $main_quote->quote }}
</blockquote>
<p id="">{{ $main_quote->author }}</p>
</span>
<h4 style="margin:18px" class="blue">Sam Message of the Day </h4>
<h4 style="margin:18px" class="blue">Message of the Day </h4>
</div>
@@ -151,7 +152,7 @@
</div>
<div class="x_content">
<div class="dashboard-widget-content">
<ul class="list-unstyled timeline widget">
<ul class="list-unstyled timeline widget" style="height: 450px; overflow: scroll;">
@if($user_activities->isEmpty() == false)
@foreach($user_activities as $userrow)
<li>
@@ -183,7 +184,7 @@
<div class="clearfix"></div>
</div>
<div class="x_content">
<ul class="list-unstyled top_profiles scroll-view">
<ul class="list-unstyled top_profiles scroll-view" style="height: 450px; overflow: scroll;">
@foreach($upcoming_hodidays as $holiday_row)
<li class="media event">
<a class="pull-left border-aero profile_thumb">
@@ -210,7 +211,7 @@
<h2 class="blue">Upcoming Birthdays</h2>
<div class="clearfix"></div>
</div>
<ul class="list-unstyled top_profiles scroll-view">
<ul class="list-unstyled top_profiles scroll-view" style="height: 450px; overflow: scroll;">
@foreach($upcoming_birthdays as $dobrow)
<li class="media event">
<a class="pull-left border-aero profile_thumb">

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
</head>
<body>
<div class="">
<img src="{!! url('public/assets/img/click-banner.png') !!}" alt="Click Mobile Banner Logo">
</div>
<h2>{{ date('F d, Y') }} Upcoming Holidays <br></h2>
Hello Team,<br>
<p>
Kindly note the following Upcoming Holidays</b>.</b>
</p>
<br>
<br>
<strong>Holiday Details</strong>
@foreach ($holiday_arr as $row)
<br>
<hr>
<p>Name : {{ $row['name'] }}</p>
<p>country : {{ $row['country'] }}</p>
<p>Event Date : {{ $row['event_date'] }}</p>
@endforeach
<p>
Sincerely, <br>
Click Mobile ERP Team
</p>
</body>
</html>

View File

@@ -58,7 +58,7 @@
<div class="left_col scroll-view">
<div class="navbar nav_title" style="padding-top: 10px; padding-left: 15px;">
<!-- <img src="{{ url('public/assets/img/cml-logo.png') }}" style="background-color: #fff;"> -->
<img src="{{ url('public/assets/img/cml-final-3_no-bg.png') }}" width="200" style="background-color: #fff;">
<img class="img-rounded" src="{{ url('public/assets/img/cml-final-3_no-bg.png') }}" width="200" style="background-color: #fff;">
<!-- <a href="{{ url('/') }}" class="site_title"><i class="fa fa-paw"></i>
<span>Click ERP</span>
</a> -->

View File

@@ -52,14 +52,14 @@
<li><a href="{!! url('underconstruction') !!}">How We Got A Client</a></li>
<li><a href="{!! url('underconstruction') !!}">Countries & Currencies </a></li>
<li><a href="{!! url('dailyquotes') !!}">Daily Quotes </a></li>
<li><a href="{!! url('underconstruction') !!}">National Holidays </a></li>
<li><a href="{!! url('holidays') !!}">National Holidays </a></li>
</ul>
</li>
</ul>
</div>
<div class="menu_section">
<ul class="nav side-menu">
<!-- <li><a href="{!! url('infrastructure/server-list') !!}"><i class="fa fa-sitemap"></i>Server List</a></li> -->
<li><a href="{!! url('infrastructure/server-list') !!}"><i class="fa fa-sitemap"></i>Server List</a></li>
<!-- <a href="{!! url('services') !!}"><i class="fa fa-shopping-bag"></i> Services </a> -->
<!-- </li> -->

View File

@@ -49,9 +49,9 @@
<div class="clearfix"></div>
<div class="separator">
<!-- <p class="change_link">New to site?
<a href="#signup" class="to_register"> Create Account </a>
</p> -->
<p class="change_link">Forgotten your password ?
<a href="{{ url('reset_form') }}" class="to_register"> Reset Here </a>
</p>
<div class="clearfix"></div>
<br />

View File

@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Click Mobile ERP | Password Reset Form </title>
<!-- Bootstrap -->
<link href="{!! url('public/assets/vendors/bootstrap/dist/css/bootstrap.min.css') !!}" rel="stylesheet">
<!-- Font Awesome -->
<link href="{!! url('public/assets/vendors/font-awesome/css/font-awesome.min.css') !!}" rel="stylesheet">
<!-- NProgress -->
<link href="{!! url('public/assets/vendors/nprogress/nprogress.css') !!}" rel="stylesheet">
<!-- Animate.css -->
<link href="{!! url('public/assets/vendors/animate.css/animate.min.css') !!}" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="{!! url('public/assets/build/css/custom.min.css') !!}" rel="stylesheet">
</head>
<body class="login">
<div>
<div class="login_wrapper">
<div class="animateP form login_formM">
<section class="login_content">
@include('commons.notifications')
<form method="post" action="{!! url('reset_link') !!}">
{{ csrf_field() }}
<h1>Password Reset Request</h1>
<div>
<input type="text" name="email" class="form-control" placeholder="Email" required="" />
</div>
<div>
<button type="submit" class="btn btn-success submit btn-block">Request Reset Link</button>
<a class="reset_pass" href="#"></a>
<p class="text help-text">Enter your email address to receive the password reset link</p>
</div>
<div class="clearfix"></div>
<div class="separator">
<div class="clearfix"></div>
<br />
<div>
<h1><i class="fa fa-paw"></i> Click ERP </h1>
<p>©{{ date('Y') }} All Rights Reserved. Click Mobile</p>
</div>
</div>
</form>
</section>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Click Mobile ERP | Reset </title>
<!-- Bootstrap -->
<link href="{!! url('public/assets/vendors/bootstrap/dist/css/bootstrap.min.css') !!}" rel="stylesheet">
<!-- Font Awesome -->
<link href="{!! url('public/assets/vendors/font-awesome/css/font-awesome.min.css') !!}" rel="stylesheet">
<!-- NProgress -->
<link href="{!! url('public/assets/vendors/nprogress/nprogress.css') !!}" rel="stylesheet">
<!-- Animate.css -->
<link href="{!! url('public/assets/vendors/animate.css/animate.min.css') !!}" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="{!! url('public/assets/build/css/custom.min.css') !!}" rel="stylesheet">
</head>
<body class="login">
<div>
<a class="hiddenanchor" id="signup"></a>
<a class="hiddenanchor" id="signin"></a>
<div class="login_wrapper">
<div class="animate form login_form">
<section class="login_content">
@include('commons.notifications')
<form method="post" action="{!! url('reset') !!}">
{{ csrf_field() }}
<h1>Enter New Password</h1>
<div>
<input type="password" name="password" class="form-control" placeholder="Password" required="" />
</div>
<div>
<input type="password" name="password_confirmation" class="form-control" placeholder="Confirm Password" required="" />
</div>
<div>
<button type="submit" class="btn btn-success submit btn-block">Submit Reset </button>
<a class="reset_passPP" href="{{ url('login') }}">Login Page</a>
</div>
<div class="clearfix"></div>
<div class="separator">
<div class="clearfix"></div>
<br />
<div>
<h1><i class="fa fa-paw"></i> Click ERP </h1>
<p>©{{ date('Y') }} All Rights Reserved. Click Mobile</p>
</div>
</div>
</form>
</section>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,84 @@
@extends('layouts.master')
@section('page_title')
@if(isset($page_title))
{{ $page_title }}
@endif
@endsection
@section('content')
<div class="">
<div class="page-title">
<div class="title_left" style="width:800px !important;">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li class="active"><a href="{!! url('holidays') !!}">National Holidays</a></li>
<li class="active">New Holiday Entry</li>
</ol>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
New National Holiday
@include('commons.notifications')
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::open(['url' => 'holidays', 'id' => 'holidaysCreateForm', 'class' => 'form-horizontal form-label-left']) !!}
<div class="row">
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="nameID">Holiday Name</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
{!! Form::text('name', old('name'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter name , 'id' => 'nameID', 'required' => 'true']) !!}
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="country">Country</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('country') ? 'has-error' : ''}}">
{!! Form::select('country', $countries, old('country'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Country , 'id' => 'country', 'required' => 'true']) !!}
{!! $errors->first('country', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="eventDate">Event Date</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('event_date') ? 'has-error' : ''}}">
{!! Form::text('event_date', old('event_date'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select event_date , 'id' => 'eventDate', 'required' => 'true']) !!}
{!! $errors->first('event_date', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
&nbsp;
<button type="button" class="btn btn-warning btn-block" id="resetBtn"><i class="fa fa-save"></i> Reset</button>
</div>
</div>
{!! Form::close() !!}
</div>
{{-- end of x_content --}}
</div>
{{-- end of x_panel --}}
</div>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript" src="{!! url('public/assets/js/holidays.js') !!}"></script>
<script type="text/javascript">
$(function(){
$('select').select2();
});
</script>
@endsection

View File

@@ -0,0 +1,85 @@
@extends('layouts.master')
@section('page_title')
@if(isset($page_title))
{{ $page_title }}
@endif
@endsection
@section('content')
<div class="">
<div class="page-title">
<div class="title_left" style="width:800px !important;">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li class="active"><a href="{!! url('holidays') !!}">Holidays</a></li>
<li class="active">Update Holiday</li>
</ol>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
Update Holiday
@include('commons.notifications')
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::model($holiday, [
'method' => 'PATCH',
'url' => ['holidays', $holiday],
'class' => 'form-horizontal form-label-left'
]) !!}
<div class="row">
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="nameID">Holiday Name</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('name') ? 'has-error' : ''}}">
{!! Form::text('name', old('name'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter name , 'id' => 'nameID', 'required' => 'true']) !!}
{!! $errors->first('quote', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="country">Country</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('country') ? 'has-error' : ''}}">
{!! Form::select('country', $countries, old('country'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select Country , 'id' => 'country', 'required' => 'true']) !!}
{!! $errors->first('country', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="eventDate">Event Date</label>
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('event_date') ? 'has-error' : ''}}">
{!! Form::text('event_date', old('event_date'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Select event_date , 'id' => 'eventDate', 'required' => 'true']) !!}
{!! $errors->first('event_date', '<p class="help-block">:message</p>') !!}
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
</div>
</div>
{!! Form::close() !!}
</div>
{{-- end of x_content --}}
</div>
{{-- end of x_panel --}}
</div>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript" src="{!! url('public/assets/js/holidays.js') !!}"></script>
<script type="text/javascript">
$(function(){
$('select').select2();
});
</script>
@endsection

View File

@@ -0,0 +1,146 @@
@extends('layouts.master')
@section('page_title')
@if(isset($page_title))
{{ $page_title }}
@endif
@endsection
@section('css')
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
@endsection
@section('content')
<div class="">
<div class="page-title">
<div class="title_left">
<div class="title_left">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li class="active">National Holidays </li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('holidays') !!}">
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
</div>
</div>
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
<div class="input-group">
<input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
</span>
</div>
</div>
</form>
</div>
<div class="row">
<div class="col-sm-12">
<div class="pull-right"></div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
@include('commons.notifications')
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2> National Holidays IDs </h2>
<div class="pull-right">
<a class="btn btn-primary btn-sm" href="{!! url('holidays/create') !!}"><i class="fa fa-plus-circle"></i> New Holiday Entry</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div>
<button id="holiday-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
<button id="holiday-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
</div>
<div id="holidaysTable"></div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
<script type="text/javascript">
$(document).ready(function(){
function link(cell, formatterParams){
var url = cell.getValue();
var rowID = cell.getData().id
return "<a href='"+ base_url + "/holidays/"+rowID+"/edit' class='btn btn-link'>"+url+"</a>";
}
var table = new Tabulator("#holidaysTable", {
ajaxURL: "holidays/all",
paginationSize: 15,
layout: "fitColumns",
pagination: "remote",
selectable: false,
printAsHtml: true,
ajaxLoaderLoading: $('#logo_spinner').html(),
columns: [
{
title: "Name",
field: "name",
sorter: "string",
},
{
title: "Event Date",
field: "event_date",
sorter: "string",
},
{
title: "Country",
field: "country",
sorter: "string",
},
],
rowClick:function(e, row){
var userID = row.getData().id;
console.log(userID);
//$('#userEditModal').modal('show');
},
});
document.getElementById("holiday-download-xlsx").addEventListener("click", function(){
table.download("xlsx", "holiday-list.xlsx", {sheetName:"Sheet 1"});
});
//trigger download of data.pdf file
document.getElementById("holiday-download-pdf").addEventListener("click", function(){
table.download("pdf", "holiday-list.pdf", {
orientation:"portrait", //set page orientation to portrait
title:"Click Mobile - holiday List", //add title to report
});
});
$('#keywordField').on('keyup', function(){
console.log('up');
var keyword = $(this).val();
table.setData("holidays/all?keyword=" + keyword);
});
});
</script>
@endsection

View File

@@ -249,7 +249,8 @@
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th scope="col active">Service</th>
<th scope="col active">Service/System ID</th>
<th scope="col active">System ID</th>
<th scope="col success">IP</th>
<th scope="col warning">Port</th>
<th scope="col info">Status</th>
@@ -258,6 +259,7 @@
@foreach($ip_addresses as $row)
<tr>
<td class="">{{ $row->service }}</td>
<td class="">{{ $row->system_id }}</td>
<td class="">{{ $row->ip_address }}</td>
<td class="">{{ $row->port }}</td>
<td class="">{{ $row->status }}</td>

View File

@@ -22,8 +22,14 @@
</div>
<div class="form-group" >
<div class="col-md-12" style="padding-bottom: 5px;">
<label for="ip">IP Address *</label>
<input type="text" class="form-control" name="ip_address" id="invoiceNumber" required >
<label for="systemID">SMPP System ID</label>
<input type="text" class="form-control" name="system_id" id="systemID" >
</div>
</div>
<div class="form-group" >
<div class="col-md-12" style="padding-bottom: 5px;">
<label for="ipAddress">IP Address *</label>
<input type="text" class="form-control" name="ip_address" id="ipAddress" required >
</div>
</div>
<div class="form-group" >

View File

@@ -265,6 +265,7 @@
<tr>
<th scope="col">#</th>
<th scope="col">IP Address</th>
<th scope="col">SMPP System ID</th>
<th scope="col">Port</th>
<th scope="col">Status</th>
<th scope="col">Added By</th>
@@ -280,6 +281,7 @@
<tr>
<th scope="row">{{ $count }}</th>
<td>{{ $row->ip_address }}</td>
<td>{{ $row->system_id }}</td>
<td>{{ $row->port }}</td>
<td>{{ $row->status }}</td>
<td>{{ $row->created_by_info->name }}</td>
@@ -334,3 +336,6 @@
});
</script>
@endsection

View File

@@ -58,9 +58,25 @@
<div class="x_content">
<div id="" class="row">
<div class="col-md-12 col-sm-12 col-xs-12 text-center">
<!-- <ul class="pagination pagination-split">
<li><a href="#">A</a></li>
<li><a href="#">B</a></li>
<li><a href="#">C</a></li>
<li><a href="#">D</a></li>
<li><a href="#">E</a></li>
<li>...</li>
<li><a href="#">W</a></li>
<li><a href="#">X</a></li>
<li><a href="#">Y</a></li>
<li><a href="#">Z</a></li>
</ul> -->
</div>
<div class="clearfix"></div>
@if($offices_arr->isEmpty() == false)
@foreach($offices_arr as $row)
<div class="col-md-3 col-sm-4 col-xs-12 profile_details">
<div class="col-md-4 col-sm-4 col-xs-12 profile_details">
<div class="well profile_view">
<div class="col-sm-12">
<div class="leftd col-xs-12">

View File

@@ -5,7 +5,9 @@
@endif
@endsection
@section('css')
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
<link href="{!! url('public/assets/vendors/tabulator-master/dist/css/tabulator_bootstrap3.min.css') !!}" type="text/css" rel="stylesheet">
<!-- <link href="https://unpkg.com/tabulator-tables@6.4.0/dist/css/tabulator.min.css" rel="stylesheet"> -->
<!-- <link href="/dist/css/tabulator_bootstrap.min.css" rel="stylesheet"> -->
@endsection
@section('content')
<div class="">
@@ -26,14 +28,14 @@
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
</div>
</div>
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
<!-- <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
<div class="input-group">
<input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
</span>
</div>
</div>
</div> -->
</form>
</div>
<div class="row">
@@ -82,7 +84,8 @@
@endsection
@section('javascript')
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
<!-- <script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script> -->
<script type="text/javascript" src="https://unpkg.com/tabulator-tables@6.4.0/dist/js/tabulator.min.js"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
@@ -115,77 +118,80 @@
}
}
var table = new Tabulator("#senderIdsTable", {
ajaxURL: "senderids/all",
paginationSize: 15,
layout: "fitColumns",
pagination: "remote",
selectable: false,
printAsHtml: true,
ajaxLoaderLoading: $('#logo_spinner').html(),
columns: [
{
title: "Sender ID",
field: "senderid",
sorter: "string",
formatter: cellDesign,
formatter:link,
},
{
title: "Direct MNO",
field: "direct_mno",
sorter: "string",
},
{
title: "Network",
field: "mno_name",
sorter: "string",
},
{
title: "Supplier",
field: "supplier_name",
sorter: "string",
},
{
title: "Status",
field: "status",
sorter: "string",
formatter: statusDesign,
},
{
title: "Remarks",
field: "remarks",
sorter: "string",
formatter: statusDesign,
},
{
title: "Created By",
field: "createdBy",
sorter: "string",
},
// {
// title: "Last Modified By",
// field: "modifiedBy",
// sorter: "string",
// }
],
rowClick:function(e, row){
var userID = row.getData().id;
console.log(userID);
//$('#userEditModal').modal('show');
ajaxURL: "senderids/all",
paginationSize: 15,
layout: "fitColumns",
// --- FIX 1: Correct Pagination Syntax ---
pagination: true,
paginationMode: "remote",
// ----------------------------------------
filterMode: "remote",
selectable: false,
printAsHtml: true,
ajaxLoaderLoading: $('#logo_spinner').html(),
ajaxResponse: function(url, params, response) {
if (response.data) {
return {
"data": response.data,
"last_page": response.last_page
};
}
return response;
},
columns: [
{
title: "Sender ID",
field: "senderid",
sorter: "string",
headerFilter:"input",
formatter: link,
},
});
document.getElementById("senderid-download-xlsx").addEventListener("click", function(){
table.download("xlsx", "senderid-list.xlsx", {sheetName:"Sheet 1"});
});
//trigger download of data.pdf file
document.getElementById("senderid-download-pdf").addEventListener("click", function(){
table.download("pdf", "client-list.pdf", {
orientation:"portrait", //set page orientation to portrait
title:"Click Mobile - Sender ID", //add title to report
});
});
{
title: "Direct MNO",
field: "direct_mno",
sorter: "string",
headerFilter:"input",
headerFilter:"input"
},
{
title: "Network",
field: "mno_name",
sorter: "string",
headerFilter:"input",
},
{
title: "Supplier",
field: "supplier_name",
sorter: "string",
headerFilter:"input",
},
{
title: "Status",
field: "status",
sorter: "string",
headerFilter:"input",
formatter: statusDesign,
},
{
title: "Remarks",
field: "remarks",
sorter: "string",
headerFilter:"input",
formatter: statusDesign,
},
{
title: "Created By",
field: "createdBy",
sorter: "string",
headerFilter:"input",
},
],
});
$('#keywordField').on('keyup', function(){
console.log('up');
var keyword = $(this).val();

View File

@@ -0,0 +1,113 @@
@extends('layouts.master')
@section('page_title')
@if(isset($page_title))
{{ $page_title }}
@endif
@endsection
@section('css')
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
@endsection
@section('content')
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Staff Members</h3>
</div>
<div class="title_right">
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12">
<div class="x_panel">
<div class="x_content">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 text-center">
<!-- <ul class="pagination pagination-split">
<li><a href="#">A</a></li>
<li><a href="#">B</a></li>
<li><a href="#">C</a></li>
<li><a href="#">D</a></li>
<li><a href="#">E</a></li>
<li>...</li>
<li><a href="#">W</a></li>
<li><a href="#">X</a></li>
<li><a href="#">Y</a></li>
<li><a href="#">Z</a></li>
</ul> -->
</div>
<div class="clearfix"></div>
@foreach($staff_members as $row)
<div class="col-md-4 col-sm-4 col-xs-12 profile_details">
<div class="well profile_view">
<div class="col-sm-12">
<h4 class="brief"><i>{{ $row->designation }}</i></h4>
<div class="left col-xs-7">
<h2>{{ $row->name }}</h2>
<p><strong>Country: </strong>{{ $row->location_country or 'N/A' }}</p>
<ul class="list-unstyled">
<li><i class="fa fa-building"></i> Email: {{ $row->email }}</li>
<li><i class="fa fa-phone"></i> Phone #: {{ $row->phone }}</li>
</ul>
</div>
<div class="right col-xs-5 text-center">
<img src="{{ url('public/staff_members/profile_pics/profile.jpg')}}" alt="" class="img-circle img-responsive">
</div>
</div>
<div class="col-xs-12 bottom text-center">
<div class="col-xs-12 col-sm-6 emphasis">
<!-- <p class="ratings">
<a>4.0</a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star-o"></span></a>
</p> -->
</div>
<div class="col-xs-12 col-sm-6 emphasis">
<!-- <button type="button" class="btn btn-success btn-xs"> <i class="fa fa-user">
</i> <i class="fa fa-comments-o"></i> </button> -->
<button type="button" class="btn btn-primary btn-xs">
<i class="fa fa-user"> </i> View Profile
</button>
</div>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
<script type="text/javascript">
$(document).ready(function(){
});
</script>
@endsection

View File

@@ -56,6 +56,24 @@
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 text-center">
<!-- <ul class="pagination pagination-split">
<li><a href="#">A</a></li>
<li><a href="#">B</a></li>
<li><a href="#">C</a></li>
<li><a href="#">D</a></li>
<li><a href="#">E</a></li>
<li>...</li>
<li><a href="#">W</a></li>
<li><a href="#">X</a></li>
<li><a href="#">Y</a></li>
<li><a href="#">Z</a></li>
</ul> -->
</div>
<div class="clearfix"></div>
</div>
@foreach($staff_members as $row)
<div class="col-md-4 col-sm-4 col-xs-12 profile_details">
<div class="well profile_view">
@@ -76,16 +94,16 @@
</div>
</div>
<div class="col-xs-12 bottom text-center">
<!-- <div class="col-xs-12 col-sm-6 emphasis">
<p class="ratings">
<div class="col-xs-12 col-sm-6 emphasis">
<!-- <p class="ratings">
<a>4.0</a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star"></span></a>
<a href="#"><span class="fa fa-star-o"></span></a>
</p>
</div> -->
</p> -->
</div>
<div class="col-xs-12 col-sm-6 emphasis">
<!-- <button type="button" class="btn btn-success btn-xs"> <i class="fa fa-user">
</i> <i class="fa fa-comments-o"></i>