staff, mno, clients, bug fixes

This commit is contained in:
Kwesi Banson
2023-05-08 10:13:03 +00:00
parent 903c1703b9
commit f2279bd13a
49 changed files with 3260 additions and 6511 deletions

View File

@@ -10,6 +10,7 @@
@include('client.partials.finance')
@include('client.partials.create-shortcodes')
@include('client.partials.edit-finance')
<?php ?>
<div class="">
<div class="page-title">
<div class="title_left">
@@ -69,10 +70,12 @@
</li>
</ul>
@endif
<a class="btn btn-success" href="{{ url('clients/'. $showclient->id . '/edit') }}"><i class="fa fa-edit m-right-xs"></i>Edit Client</a>
<br />
@if(session('current_user.id') == $showclient->auth_user_id)
<a class="btn btn-success" href="{{ url('clients/'. $showclient->id . '/edit') }}"><i class="fa fa-edit m-right-xs"></i> Edit Client</a>
@endif
<a class="btn btn-primary" href="{{ url('clients/readonly/'. $showclient->id) }}"><i class="fa fa-eye m-right-xs"></i> Full Details (Readonly)</a>
<br />
<!-- start skills -->
<!-- <h4>Finance</h4>
@@ -132,7 +135,7 @@
<div class="col-md-4">
<h4 class="lead"><strong>Support Phone(s)</strong></h4>
@if($showclient->support_phones !== null)
@if(!empty($showclient->support_phones))
<blockquote>
<?php
$the_arr = json_decode($showclient->support_phones, true) ?>
@@ -148,7 +151,7 @@
N/A
@endif
<h4 class="lead"><strong>Support Email(s)</strong></h4>
@if($showclient->support_emails !== null)
@if(!empty($showclient->support_emails))
<blockquote>
<?php
$the_arr = json_decode($showclient->support_emails, true) ?>
@@ -163,7 +166,7 @@
@else
N/A
@endif
@if($showclient->rate_emails !== null)
@if(!empty($showclient->rate_emails))
<h4 class="lead"><strong>Rates Email(s)</strong></h4>
<blockquote>
<?php
@@ -180,10 +183,10 @@
N/A
@endif
<h4 class="lead"><strong>Finance Email(s)</strong></h4>
@if($showclient->finance_emails !== null)
@if(!empty($showclient->finance_email))
<blockquote>
<?php
$the_arr = json_decode($showclient->finance_emails, true) ?>
$the_arr = json_decode($showclient->finance_email, true) ?>
<ul>
<?php foreach ($the_arr as $row): ?>
@@ -199,7 +202,7 @@
</div>
<div class="col-md-4">
<h4 class="lead"><strong>Support Skype ID(s)</strong></h4>
@if($showclient->support_skype !== null)
@if(!empty($showclient->support_skype))
<blockquote>
<?php
$the_arr = json_decode($showclient->support_skype, true) ?>
@@ -218,6 +221,17 @@
<h4>How We Got This Client</h4>
<?php echo $showclient->how_we_got_client ?? "N/A" ?>
</div>
<h4>Documents</h4>
@if(!$showdocuments->isEmpty() == true)
@foreach($showdocuments as $docs)
<p class="url">
<span class="fs1 text-info" aria-hidden="true" data-icon=""></span>
<a href="{{ url('clients/downloadfile', $docs->id) }}"><i class="fa fa-paperclip"></i> {{ $docs->name }}.{{ $docs->file_extension }}</a>
</p>
@endforeach
@else
<p>No Documents found</p>
@endif
</div>