|
@@ -10,10 +10,9 @@
|
|
|
</div>
|
|
|
<div class="col-sm-6">
|
|
|
<ol class="breadcrumb float-sm-right">
|
|
|
- <li class="breadcrumb-item"><a class=""
|
|
|
- href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
|
|
|
+ <li class="breadcrumb-item"><a class="" href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
|
|
|
<li class="breadcrumb-item"><a class="text-muted"
|
|
|
- href="{{ route('store.index') }}">{{ __('Store') }}</a></li>
|
|
|
+ href="{{ route('store.index') }}">{{ __('Store') }}</a></li>
|
|
|
</ol>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -31,8 +30,7 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
|
|
|
- @if ($isPaymentSetup && $products->count() > 0)
|
|
|
-
|
|
|
+ @if ($isStoreEnabled && $products->count() > 0)
|
|
|
<div class="card">
|
|
|
<div class="card-header">
|
|
|
<h5 class="card-title"><i class="fa fa-coins mr-2"></i>{{ $credits_display_name }}</h5>
|
|
@@ -40,43 +38,48 @@
|
|
|
<div class="card-body">
|
|
|
<table class="table table-striped table-responsive-sm">
|
|
|
<thead>
|
|
|
- <tr>
|
|
|
- <th>{{ __('Price') }}</th>
|
|
|
- <th>{{ __('Type') }}</th>
|
|
|
- <th>{{ __('Description') }}</th>
|
|
|
- <th></th>
|
|
|
- </tr>
|
|
|
+ <tr>
|
|
|
+ <th>{{ __('Price') }}</th>
|
|
|
+ <th>{{ __('Type') }}</th>
|
|
|
+ <th>{{ __('Description') }}</th>
|
|
|
+ <th></th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- @foreach ($products as $product)
|
|
|
- <tr>
|
|
|
- <td>{{ $product->formatToCurrency($product->price) }}</td>
|
|
|
- <td>{{ strtolower($product->type) == 'credits' ? $credits_display_name : $product->type }}</td>
|
|
|
- <td>
|
|
|
- @if(strtolower($product->type) == 'credits')
|
|
|
- <i class="fa fa-coins mr-2"></i>
|
|
|
- @elseif (strtolower($product->type) == 'server slots')
|
|
|
- <i class="fa fa-server mr-2"></i>
|
|
|
- @endif
|
|
|
+ @foreach ($products as $product)
|
|
|
+ <tr>
|
|
|
+ <td>{{ $product->formatToCurrency($product->price) }}</td>
|
|
|
+ <td>{{ strtolower($product->type) == 'credits' ? $credits_display_name : $product->type }}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ @if (strtolower($product->type) == 'credits')
|
|
|
+ <i class="fa fa-coins mr-2"></i>
|
|
|
+ @elseif (strtolower($product->type) == 'server slots')
|
|
|
+ <i class="fa fa-server mr-2"></i>
|
|
|
+ @endif
|
|
|
|
|
|
- {{ $product->display }}</td>
|
|
|
- <td><a href="{{ route('checkout', $product->id) }}"
|
|
|
- class="btn btn-info">{{ __('Purchase') }}</a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
+ {{ $product->display }}
|
|
|
+ </td>
|
|
|
+ <td><a href="{{ route('checkout', $product->id) }}"
|
|
|
+ class="btn btn-info">{{ __('Purchase') }}</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
@else
|
|
|
<div class="alert alert-danger alert-dismissible">
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
|
- <h4><i class="icon fa fa-ban"></i> @if ($products->count() == 0) {{ __('There are no store products!') }} @else {{ __('The store is not correctly configured!') }} @endif
|
|
|
+ <h4><i class="icon fa fa-ban"></i>
|
|
|
+ @if ($products->count() == 0)
|
|
|
+ {{ __('There are no store products!') }}
|
|
|
+ @else
|
|
|
+ {{ __('The store is not correctly configured!') }}
|
|
|
+ @endif
|
|
|
</h4>
|
|
|
</div>
|
|
|
-
|
|
|
@endif
|
|
|
|
|
|
|