From a5b48c473069341d0460f2242c4998f45ea20819 Mon Sep 17 00:00:00 2001 From: IceToast Date: Thu, 2 Mar 2023 16:00:06 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Removed=20redundant=20clo?= =?UTF-8?q?sing=20div=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/default/views/home.blade.php | 235 ++++++++++++++-------------- 1 file changed, 114 insertions(+), 121 deletions(-) diff --git a/themes/default/views/home.blade.php b/themes/default/views/home.blade.php index 69c14089..29d12926 100644 --- a/themes/default/views/home.blade.php +++ b/themes/default/views/home.blade.php @@ -168,139 +168,132 @@ @endif - - - -
-
-
-

- - {{ __('Activity Logs') }} -

-
- -
-
    - @foreach (Auth::user()->actions()->take(8)->orderBy('created_at', 'desc')->get() as $log) -
  • - - @if (str_starts_with($log->description, 'created')) - - @elseif(str_starts_with($log->description, 'redeemed')) - - @elseif(str_starts_with($log->description, 'deleted')) - - @elseif(str_starts_with($log->description, 'gained')) - - @elseif(str_starts_with($log->description, 'updated')) - - @endif - {{ explode('\\', $log->subject_type)[2] }} - {{ ucfirst($log->description) }} - - - {{ $log->created_at->diffForHumans() }} - -
  • - @endforeach -
-
- -
- - @if ($referral_settings->enabled) - +

- - {{ __('Partner program') }} + + {{ __('Activity Logs') }}

- @if ( - ($referral_settings->allowed == 'client' && Auth::user()->role != 'member') || - $referral_settings->allowed == 'everyone') -
-
- - - {{ __('Your referral URL') }}: - - {{ __('Click to copy') }} - +
    + @foreach (Auth::user()->actions()->take(8)->orderBy('created_at', 'desc')->get() as $log) +
  • + + @if (str_starts_with($log->description, 'created')) + + @elseif(str_starts_with($log->description, 'redeemed')) + + @elseif(str_starts_with($log->description, 'deleted')) + + @elseif(str_starts_with($log->description, 'gained')) + + @elseif(str_starts_with($log->description, 'updated')) + + @endif + {{ explode('\\', $log->subject_type)[2] }} + {{ ucfirst($log->description) }} -
-
- {{ __('Number of referred users:') }} - {{ $numberOfReferrals }} -
-
- @if ($partnerDiscount) -
- - - - - - - - - - - - - - - - - -
{{ __('Your discount') }}{{ __('Discount for your new users') }}{{ __('Reward per registered user') }}{{ __('New user payment commision') }}
{{ $partnerDiscount->partner_discount }}%{{ $partnerDiscount->registered_user_discount }}%{{ $referral_settings->reward }} - {{ $general_settings->credits_display_name }}{{ $partnerDiscount->referral_system_commission == -1 ? $referral_settings->percentage : $partnerDiscount->referral_system_commission }}% -
-
- @else -
- - - - - - - - - - - - - -
{{ __('Reward per registered user') }}{{ __('New user payment commision') }}
{{ $referral_settings->reward }} - {{ $general_settings->credits_display_name }}{{ $referral_settings->percentage }}%
-
- @endif - @else - - {{ __('Make a purchase to reveal your referral-URL') }} - @endif + + {{ $log->created_at->diffForHumans() }} + + + @endforeach +
- @endif - -
- - -
- + + @if ($referral_settings->enabled) + +
+
+

+ + {{ __('Partner program') }} +

+
+ +
+ @if ( + ($referral_settings->allowed == 'client' && Auth::user()->role != 'member') || + $referral_settings->allowed == 'everyone') +
+
+ + + {{ __('Your referral URL') }}: + + {{ __('Click to copy') }} + + +
+
+ {{ __('Number of referred users:') }} + {{ $numberOfReferrals }} +
+
+ @if ($partnerDiscount) +
+ + + + + + + + + + + + + + + + + +
{{ __('Your discount') }}{{ __('Discount for your new users') }}{{ __('Reward per registered user') }}{{ __('New user payment commision') }}
{{ $partnerDiscount->partner_discount }}%{{ $partnerDiscount->registered_user_discount }}%{{ $referral_settings->reward }} + {{ $general_settings->credits_display_name }}{{ $partnerDiscount->referral_system_commission == -1 ? $referral_settings->percentage : $partnerDiscount->referral_system_commission }}% +
+
+ @else +
+ + + + + + + + + + + + + +
{{ __('Reward per registered user') }}{{ __('New user payment commision') }}
{{ $referral_settings->reward }} + {{ $general_settings->credits_display_name }}{{ $referral_settings->percentage }}%
+
+ @endif + @else + + {{ __('Make a purchase to reveal your referral-URL') }} + @endif +
+ +
+ @endif + +