Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/whatsapp-crm/app/Http/Controllers/Admin/
Upload File :
Current File : /home/users/unlimited/www/whatsapp-crm/app/Http/Controllers/Admin/PaymentController.php

<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller as BaseController;
use App\Services\BillingService;
use Illuminate\Http\Request;
use Inertia\Inertia;

class PaymentController extends BaseController
{
    private $RoleService;

    /**
     * PaymentController constructor.
     *
     * @param BillingService $billingService
     */
    public function __construct(BillingService $billingService)
    {
        $this->billingService = $billingService;
    }

    public function index(Request $request){
        return Inertia::render('Admin/Payment/Index', [
            'title' => __('Billing'),
            'rows' => $this->billingService->get($request), 
            'filters' => $request->all()
        ]);
    }
}