From e1efe82b0cac8d81cd3dd2355dd4bed236a0e5ae Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 17 Nov 2019 22:47:22 -0600 Subject: [PATCH] dashboard for splash page blade template written first draft --- resources/views/timers/dashboard.blade.php | 93 +++++++++++++--------- 1 file changed, 57 insertions(+), 36 deletions(-) diff --git a/resources/views/timers/dashboard.blade.php b/resources/views/timers/dashboard.blade.php index add346a..f3563ee 100644 --- a/resources/views/timers/dashboard.blade.php +++ b/resources/views/timers/dashboard.blade.php @@ -2,44 +2,65 @@ @section('content')
-
-
-

Total Contracts Available

-
-
- {{ $num }} -
-
+ @if($ongoing > 0) + + + + + + + + + + + + @foreach($currentTimers as $timer) + + + + + + + + + + @endforeach + +
TypeStageRegionLocationOwnerDate & TimeNotes
{{ $timer->type }}{{ $timer->stage }}{{ $timer->region }}{{ $timer->system . " - " . $timer->planet . " - " . $timer->moon }}{{ $timer->owner }}{{ $timer->eveTime }}{{ $timer->notes }}
+ @else + No current timers + @endif

-@if($num > 0)
- - - - - - - - - - - - - @foreach($contracts as $contract) - - - - - - - - - - - @endforeach - -
Pickup SystemDestination SystemTypeVolumeDate ExpiredCollateralRewardAvailability
{{ $contract['pickup'] }}{{ $contract['destination'] }}{{ $contract['type'] }}{{ number_format($contract['volume'], 2, ".", ",") }}{{ $contract['expired'] }}{{ number_format($contract['collateral'], 2, ".", ",") }}{{ number_format($contract['reward'], 2, ".", ",") }}{{ $contract['availability'] }}
+ @if($past > 0) + + + + + + + + + + + + @foreach($oldTimers as $timer) + + + + + + + + + + @endforeach + +
TypeStageRegionLocationOwnerDate & TimeNotes
{{ $timer->type }}{{ $timer->stage }}{{ $timer->region }}{{ $timer->system . " - " . $timer->planet . " - " . $timer->moon }}{{ $timer->owner }}{{ $timer->eveTime }}{{ $timer->notes }}
+ @else + No past timers. + @endif
-@endif + @endsection \ No newline at end of file