File: //home/armgroup/libs/app/Http/Controllers/Account/WalletController.php
<?php
namespace App\Http\Controllers\Account;
use App\Http\Controllers\Controller;
use App\Models\Wallet;
use Artesaos\SEOTools\Facades\SEOTools;
class WalletController extends Controller
{
public function index()
{
SEOTools::setTitle('پنل کاربری');
$wallets = Wallet::where('user_id', auth()->id())->latest()->paginate($this->pageLimit);
return view('account.wallets.index', compact('wallets'));
}
public function show(Wallet $wallet)
{
abort_unless($wallet->user_id == auth()->id(), 403);
SEOTools::setTitle('پنل کاربری');
return view('account.wallets.show', compact('wallet'));
}
public function create()
{
SEOTools::setTitle('پنل کاربری');
return view('account.wallets.create');
}
}