|
@@ -46,6 +46,10 @@
|
|
$programCategories = array_filter($programCategories, function($_item) {
|
|
$programCategories = array_filter($programCategories, function($_item) {
|
|
return !empty($_item);
|
|
return !empty($_item);
|
|
});
|
|
});
|
|
|
|
+ $programMonth = null;
|
|
|
|
+ if($filter === '') {
|
|
|
|
+ $programMonth = $program->getProgramMonth(strtoupper(date('F')), date('Y'));
|
|
|
|
+ }
|
|
?>
|
|
?>
|
|
<div class="card mb-4">
|
|
<div class="card mb-4">
|
|
|
|
|
|
@@ -127,7 +131,6 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="card-body p-0">
|
|
<div class="card-body p-0">
|
|
@@ -314,7 +317,7 @@
|
|
<div class="border-bottom py-1 px-2 bg-light d-flex">
|
|
<div class="border-bottom py-1 px-2 bg-light d-flex">
|
|
<span class="font-weight-bold">Measurements</span>
|
|
<span class="font-weight-bold">Measurements</span>
|
|
@if($programCategories && count($programCategories))
|
|
@if($programCategories && count($programCategories))
|
|
- <div class="">
|
|
|
|
|
|
+ <div class="d-inline-flex">
|
|
@foreach($programCategories as $category)
|
|
@foreach($programCategories as $category)
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<div moe relative>
|
|
<div moe relative>
|
|
@@ -340,6 +343,12 @@
|
|
@endforeach
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
+ @if(!!$programMonth)
|
|
|
|
+ <div class="ml-auto pr-2">
|
|
|
|
+ <b>{{ $programMonth->time_in_minutes }}</b> mins billed,
|
|
|
|
+ <b>{{ $program->max_monthly_time_in_minutes - $programMonth->time_in_minutes }}</b> mins remaining
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
<?php
|
|
<?php
|
|
$programMeasurements = [];
|
|
$programMeasurements = [];
|
|
@@ -354,6 +363,7 @@
|
|
}
|
|
}
|
|
?>
|
|
?>
|
|
@foreach($programMeasurements as $measurement)
|
|
@foreach($programMeasurements as $measurement)
|
|
|
|
+ <?php $minutes = $measurement->minutesEntered($pro); ?>
|
|
<div class="d-flex align-items-center py-1 px-2 border-bottom">
|
|
<div class="d-flex align-items-center py-1 px-2 border-bottom">
|
|
<div moe relative class="mr-2">
|
|
<div moe relative class="mr-2">
|
|
<a class="on-hover-opaque" start show title="Delete">
|
|
<a class="on-hover-opaque" start show title="Delete">
|
|
@@ -395,7 +405,7 @@
|
|
@php $matchingClientPrograms = $pro->canAddCPMEntryForMeasurement($measurement, $pro); @endphp
|
|
@php $matchingClientPrograms = $pro->canAddCPMEntryForMeasurement($measurement, $pro); @endphp
|
|
@if(1) {{-- TODO:--}}
|
|
@if(1) {{-- TODO:--}}
|
|
<div moe>
|
|
<div moe>
|
|
- <a href="#" class="ml-2 font-weight-normal" start show><i class="fa fa-clock"></i> <b>Entry</b> ({{ $measurement->numCPMEntries() }})</a>
|
|
|
|
|
|
+ <a href="#" class="ml-2 font-weight-normal" start show><i class="fa fa-clock"></i> <b>Entry</b></a>
|
|
<form url="/api/clientProgramMonthEntry/create">
|
|
<form url="/api/clientProgramMonthEntry/create">
|
|
<input type="hidden" name="measurementUid" value="{{ $measurement->uid }}">
|
|
<input type="hidden" name="measurementUid" value="{{ $measurement->uid }}">
|
|
<input type="hidden" name="proUid" value="{{ $pro->uid }}">
|
|
<input type="hidden" name="proUid" value="{{ $pro->uid }}">
|
|
@@ -410,7 +420,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label class="text-sm mb-1 text-secondary">Quick Text</label>
|
|
<label class="text-sm mb-1 text-secondary">Quick Text</label>
|
|
- <input required type="text" class="form-control form-control-sm" name="quickText" value="">
|
|
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="quickText" value="">
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label class="text-sm mb-1 text-secondary">Measurement Determination</label>
|
|
<label class="text-sm mb-1 text-secondary">Measurement Determination</label>
|
|
@@ -427,6 +437,9 @@
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
+ @if(!!$programMonth)
|
|
|
|
+ <span class="ml-auto pr-2 text-secondary">{!! $minutes ? '<b>' . $minutes . '</b> mins billed' : 'Entry pending' !!} </span>
|
|
|
|
+ @endif
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
@endforeach
|
|
@if(!count($programMeasurements))
|
|
@if(!count($programMeasurements))
|