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

@@ -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