staff members,senderid, documents,bug fixes, etc

This commit is contained in:
Kwesi Banson
2023-07-27 01:33:36 +00:00
parent f2279bd13a
commit ea6d83e5d9
154 changed files with 21442 additions and 246 deletions

View File

@@ -0,0 +1,118 @@
@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('generaldocuments') !!}">Documents</a></li>
<li class="active">New Document</li>
</ol>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-8">
<div class="x_panel">
<div class="x_title">
New Document
@include('commons.notifications')
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::open(['url' => 'generaldocuments', 'files' => 'true', 'class' => 'form-horizontal form-label-left']) !!}
<div class="row">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
<label class="" for="documentOneName">Document Name</label>
{!! Form::text('document_one_name', null, ['class' => 'form-control' , 'id' => 'documentOneName', 'placeholder' => 'Enter name of document']) !!}
{!! $errors->first('document_one_name', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class=" {{ $errors->has('document_one') ? 'has-error' : ''}}">
<label class="" for="documentOne">First Document</label>
{!! Form::file('document_one', null, ['class' => 'form-control' , 'id' => 'documentOne', 'placeholder' => 'Select file to upload']) !!}
{!! $errors->first('document_one', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
<label class="" for="documentOneName">Document Name</label>
{!! Form::text('document_two_name', null, ['class' => 'form-control' , 'id' => 'documentTwoName', 'placeholder' => 'Enter name of document']) !!}
{!! $errors->first('document_two_name', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class=" {{ $errors->has('document_two') ? 'has-error' : ''}}">
<label class="" for="documentTwo">Second Document</label>
{!! Form::file('document_two', null, ['class' => 'form-control' , 'id' => 'documentTwo', 'placeholder' => 'Select file to upload']) !!}
{!! $errors->first('document_two', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
<label class="" for="documentThreeName">Document Name</label>
{!! Form::text('document_three_name', null, ['class' => 'form-control' , 'id' => 'documentThreeName', 'placeholder' => 'Enter name of document']) !!}
{!! $errors->first('document_three_name', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class=" {{ $errors->has('document_three') ? 'has-error' : ''}}">
<label class="" for="documentThree">Third Document</label>
{!! Form::file('document_three', null, ['class' => 'form-control' , 'id' => 'documentThree', 'placeholder' => 'Select file to upload']) !!}
{!! $errors->first('document_three', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-12 col-sm-12 col-xs-12 btn-block">
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Upload</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">
$(function(){
$('select').select2();
});
</script>
@endsection

View File

@@ -0,0 +1,82 @@
@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('generaldocuments') !!}">General Documents</a></li>
<li class="active">Update Document Details</li>
</ol>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
Update Document Details
@include('commons.notifications')
<div class="clearfix"></div>
</div>
{{-- start of content --}}
<div class="x_content">
<br>
{!! Form::model($document, [
'method' => 'PATCH',
'url' => ['generaldocuments', $document->id],
'files' => 'true',
'class' => 'form-horizontal form-label-left'
]) !!}
<div class="row">
<div class="col-md-12">
<div class="form-group">
<div class=" {{ $errors->has('how_we_got_client_other') ? 'has-error' : ''}}">
<label class="" for="documentOneName">Document Name</label>
{!! Form::text('name', old('name'), ['class' => 'form-control' , 'id' => 'documentOneName', 'placeholder' => 'Enter name of document']) !!}
{!! $errors->first('document_one_name', '<p class="help-block">:message</p>') !!}
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<div class=" {{ $errors->has('document_one') ? 'has-error' : ''}}">
<label class="" for="documentOne">First Document</label>
{!! Form::file('document_one', null, ['class' => 'form-control' , 'id' => 'documentOne', 'placeholder' => 'Select file to upload']) !!}
{!! $errors->first('document_one', '<p class="help-block">:message</p>') !!}
<p class="help-block">This will replace the existing file</p>
</div>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-12 col-sm-12 col-xs-12">
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Update Document</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">
$(function(){
$('select').select2();
});
</script>
@endsection

View File

@@ -0,0 +1,143 @@
@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">General Document</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('senderids') !!}">
<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> Sender IDs </h2>
<div class="pull-right">
<a class="btn btn-primary btn-sm" href="{!! url('generaldocuments/create') !!}"><i class="fa fa-plus-circle"></i> Upload New Document</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div id="generalDocumentsTable"></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(){
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>";
}
var table = new Tabulator("#generalDocumentsTable", {
ajaxURL: "generaldocuments/all",
paginationSize: 15,
layout: "fitColumns",
pagination: "remote",
selectable: false,
printAsHtml: true,
ajaxLoaderLoading: $('#logo_spinner').html(),
columns: [
{
title: "Client",
field: "clientName",
sorter: "string",
formatter:link,
},
{
title: "Sender ID",
field: "senderid",
sorter: "string",
},
{
title: "Status",
field: "status",
sorter: "string",
},
{
title: "Network",
field: "networkName",
sorter: "string",
},
{
title: "Country",
field: "country",
sorter: "string",
},
{
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');
},
});
$('#keywordField').on('keyup', function(){
console.log('up');
var keyword = $(this).val();
table.setData("senderids/all?keyword=" + keyword);
});
});
</script>
@endsection

View File

@@ -0,0 +1,134 @@
@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">General Documents</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('generaldocuments') !!}">
<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> General Documents </h2>
<div class="pull-right">
<a class="btn btn-primary btn-sm" href="{!! url('generaldocuments/create') !!}"><i class="fa fa-plus-circle"></i> Upload New Documents</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div id="generalDocumentsTable"></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(){
function link(cell, formatterParams){
var url = cell.getValue();
var rowID = cell.getData().id
return "<a href='"+ base_url + "/generaldocuments/"+rowID+"/edit' title='Edit Document' class='btn btn-link'>"+url+"</a>";
}
function downloadlink(cell, formatterParams){
var url = cell.getValue();
var rowID = cell.getData().id
return "<a href='"+ base_url + "/generaldocuments/download/"+rowID+"' title='Download File' class='btn btn-link'>"+url+"</a>";
}
var table = new Tabulator("#generalDocumentsTable", {
ajaxURL: "generaldocuments/all",
paginationSize: 15,
layout: "fitColumns",
pagination: "remote",
selectable: false,
printAsHtml: true,
ajaxLoaderLoading: $('#logo_spinner').html(),
columns: [
{
title: "Name",
field: "name",
sorter: "string",
formatter:link,
},
{
title: "File",
field: "filename",
sorter: "string",
formatter:downloadlink,
},
{
title: "Uploaded By",
field: "UploadedBy",
sorter: "string",
},
{
title: "Date",
field: "created_at",
sorter: "string",
}
],
rowClick:function(e, row){
var userID = row.getData().id;
console.log(userID);
//$('#userEditModal').modal('show');
},
});
$('#keywordField').on('keyup', function(){
console.log('up');
var keyword = $(this).val();
table.setData("generaldocuments/all?keyword=" + keyword);
});
});
</script>
@endsection

View File

@@ -0,0 +1,136 @@
@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">General Documents</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('generaldocuments') !!}">
<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> General Documents </h2>
<div class="pull-right">
<a class="btn btn-primary btn-sm" href="{!! url('generaldocuments/create') !!}"><i class="fa fa-plus-circle"></i> Upload New Documents</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div id="generalDocumentsTable"></div>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" id="categoryID" value="{{ $category }}" name="category">
@endsection
@section('javascript')
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.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 + "/generaldocuments/"+rowID+"/edit' title='Edit Document' class='btn btn-link'>"+url+"</a>";
}
function downloadlink(cell, formatterParams){
var url = cell.getValue();
var rowID = cell.getData().id
return "<a href='"+ base_url + "/generaldocuments/download/"+rowID+"' title='Download File' class='btn btn-link'>"+url+"</a>";
}
var category = $('#categoryID').val();
console.log(category);
var table = new Tabulator("#generalDocumentsTable", {
ajaxURL: "json/" + category,
paginationSize: 15,
layout: "fitColumns",
pagination: "remote",
selectable: false,
printAsHtml: true,
ajaxLoaderLoading: $('#logo_spinner').html(),
columns: [
{
title: "Name",
field: "name",
sorter: "string",
formatter:link,
},
{
title: "File",
field: "filename",
sorter: "string",
formatter:downloadlink,
},
{
title: "Uploaded By",
field: "UploadedBy",
sorter: "string",
},
{
title: "Date",
field: "created_at",
sorter: "string",
}
],
rowClick:function(e, row){
var userID = row.getData().id;
console.log(userID);
//$('#userEditModal').modal('show');
},
});
$('#keywordField').on('keyup', function(){
console.log('up');
var keyword = $(this).val();
table.setData("generaldocuments/json?keyword=" + keyword + "&category=api");
});
});
</script>
@endsection