apps my page fixed empty page message ( #337ymcn )
This commit is contained in:
parent
cebef2e563
commit
2e10309210
@ -3,9 +3,12 @@
|
||||
namespace App\Http\Controllers\Modules;
|
||||
|
||||
use App\Abstracts\Http\Controller;
|
||||
use App\Traits\Modules;
|
||||
|
||||
class My extends Controller
|
||||
{
|
||||
use Modules;
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
@ -13,6 +16,9 @@ class My extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return $this->response('modules.my.index');
|
||||
$purchase = $this->getMyModules(['query' => ['limit' => 16]]);
|
||||
$installed = $this->getInstalledModules();
|
||||
|
||||
return $this->response('modules.my.index', compact('purchase', 'installed'));
|
||||
}
|
||||
}
|
||||
|
@ -14,9 +14,21 @@
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
@if (! empty($purchase) || ! empty($installed))
|
||||
<x-modules.purchased />
|
||||
|
||||
<x-modules.installed />
|
||||
@else
|
||||
<div class="py-6 font-medium">
|
||||
<div class="flex items-center justify-between mb-5 lg:mb-0">
|
||||
<h4 class="py-3 font-medium lg:text-2xl">
|
||||
{{ trans('modules.my_apps') }}
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<x-modules.no-apps />
|
||||
</div>
|
||||
@endif
|
||||
</x-slot>
|
||||
|
||||
<x-script folder="modules" file="apps" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user