<?php
/*
|--------------------------------------------------------------------------
| ColibriPlus - The Social Network Web Application.
|--------------------------------------------------------------------------
| Author: Mansur Terla. Full-Stack Web Developer, UI/UX Designer.
| Website: www.terla.me
| E-mail: mansurtl.contact@gmail.com
| Instagram: @mansur_terla
| Telegram: @mansurtl_contact
|--------------------------------------------------------------------------
| Copyright (c)  ColibriPlus. All rights reserved.
|--------------------------------------------------------------------------
*/

namespace App\Http\Controllers\Business\Wallet;

use App\Http\Controllers\Controller;

class WalletController extends Controller
{
    public function index()
    {
        $cashouts = me()->cashouts()->latest()->paginate(10);

        return view('business::wallet.overview.index', [
            'walletData' => me()->wallet,
            'cashouts' => $cashouts
        ]);
    }

    public function createCashout()
    {
        return view('business::wallet.cashout.create');
    }
}
