first commit, after modifying client section

This commit is contained in:
Kwesi Banson
2023-02-22 07:48:50 +00:00
commit ad0dd6a6e1
1880 changed files with 538494 additions and 0 deletions

View File

@@ -0,0 +1,125 @@
@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">
<div class="title_left">
<ol class="breadcrumb">
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
<li class="active">Clients</li>
</ol>
</div>
</div>
<div class="title_right">
<div class="row">
<form method="GET" action="{!! url('clients') !!}">
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
{!! Form::select('filter', $columns, null, ['class' => 'form-control', 'placeholder' => 'Select Filter here']) !!}
</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" 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">
<a href="{!! url('clients') !!}" class="btn btn-warning btn-xs"><i class="fa fa-refresh"></i> Reset Filter</a>
</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> Clients </h2>
<div class="pull-right">
<a class="btn btn-primary btn-sm" href="{!! url('clients/create') !!}"><i class="fa fa-plus-circle"></i> Add Client
</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="table-responsive">
<table class="table table-striped jambo_table bulk_action table-condensed" style="width: 100%;">
<thead>
<tr class="headings">
<th class="column-title">Client</th>
<th class="column-title">Account Manager</th>
<th class="column-title">Status</th>
<th class="column-title">Country</th>
<th class="column-title">Last Modified By</th>
<th class="column-title no-link last"><span class="nobr">Action</span>
</th>
<th class="bulk-actions" colspan="7">
<a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
</th>
</tr>
</thead>
<tbody>
@if ($client_arr->isEmpty())
<tr>
<td class="" colspan="6">No Records found</td>
</tr>
@else
@foreach ($client_arr as $row)
<tr class="even pointer">
<td class="mes-td"><a href="{!! route('clients.show', [$row->id]) !!}" class="btn btn-link" > {{ $row->name }} </a></td>
<td class="mes-td" >{{ $row->auth_user_info->name }}</td>
<td class="mes-td">{{ $row->status }}</td>
<td class="mes-td" style="word-wrap: break-word; width: 120px;" >@if(isset($row->country_info)) {{ $row->country_info->en_short_name }} @else N/A @endif</td>
<td class="mes-td" >@if(isset($row->modified_by_info)) {{ $row->modified_by_info->name }}@else N/A @endif</td>
<td class="last">
<a href="{!! route('clients.show', [$row->id]) !!}" class="btn btn-xs btn-success"><i class="fa fa-eye"></i></a>
<a href="{!! route('clients.edit', [$row->id]) !!}" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i></a>
<!-- <a title="Remove Client" class="btn btn-xs btn-danger removeClient"><i class="fa fa-trash"></i></a> -->
<input type="hidden" name="client_id" class="clientID" value="{{ $row->id }}">
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
{{ $client_arr->links() }} <br>
Page : {{ $client_arr->currentPage() }} of {{ $client_arr->lastPage() }} |
Total Records : <span id="totalRecords">{{ $client_arr->total() }}</span>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript">
$(document).ready(function(){
});
</script>
@endsection