From dbb4d870aa3e8248374134bd3c45367368f71857 Mon Sep 17 00:00:00 2001 From: cp6 Date: Sun, 20 Feb 2022 00:34:13 +1100 Subject: [PATCH] Added type column to home view tables Added type column to home view tables --- resources/views/home.blade.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 6bdf372..07876f3 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -141,6 +141,7 @@ Name + Type Due Price @@ -162,6 +163,19 @@ {{$due_soon->name}} @endif + + @if($due_soon->service_type === 1) + VPS + @elseif($due_soon->service_type === 2) + SHARED + @elseif($due_soon->service_type === 3) + RESELLER + @elseif($due_soon->service_type === 4) + DOMAIN + @elseif($due_soon->service_type === 5) + MISC + @endif + {{Carbon\Carbon::parse($due_soon->next_due_date)->diffForHumans()}} {{$due_soon->price}} {{$due_soon->currency}} {{\App\Process::paymentTermIntToString($due_soon->term)}} @@ -197,6 +211,7 @@ Name + Type Added Price @@ -218,6 +233,19 @@ {{$new->name}} @endif + + @if($due_soon->service_type === 1) + VPS + @elseif($due_soon->service_type === 2) + SHARED + @elseif($due_soon->service_type === 3) + RESELLER + @elseif($due_soon->service_type === 4) + DOMAIN + @elseif($due_soon->service_type === 5) + MISC + @endif + {{Carbon\Carbon::parse($new->created_at)->diffForHumans()}} {{$new->price}} {{$new->currency}} {{\App\Process::paymentTermIntToString($new->term)}}