File "SubscriptionSettings.php"

Full Path: /home/fundopuh/trader.fxex.org/app/Http/Controllers/Admin/Settings/SubscriptionSettings.php
File size: 1.02 KB
MIME-type: text/x-php
Charset: utf-8

<?php  
// this Code is Cracked by dharunMods-YouTube-Channel

namespace App\Http\Controllers\Admin\Settings;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Settings;

class SubscriptionSettings extends Controller
{
    // Return view
    public function index()
    {
        return view('admin.Settings.SubscriptionSettings.show', [
            'title' => 'Subscription settings',
            'settings' => Settings::where('id', '=', '1')->first(),
        ]);
    }

    //Update Subscription Fees
    public function updatesubfee(Request $request)
    {
        Settings::where('id', $request['id'])
            ->update([
                'monthlyfee' => $request['monthlyfee'],
                'quarterlyfee' => $request['quaterlyfee'],
                'yearlyfee' => $request['yearlyfee'],
                'subscription_service' => $request['subscription_service'],
            ]);
        return response()->json(['status' => 200, 'success' => 'Subscription Settings Saved successfully']);
    }
}