/home/kueuepay/public_html/app/Http/Controllers/Admin/CookieController.php
<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Admin\SiteSections;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;

class CookieController extends Controller
{
    /**
     * Display a listing of the resource.
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $page_title = "GDPR Cookie";
        $site_cookie = SiteSections::siteCookie();
        return view('admin.sections.cookie.index',compact(
            'page_title',
            'site_cookie',
        ));
    }
    /**
     * Update the specified resource in storage.
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request)
    {
        $validator = Validator::make($request->all(),[
            'status'    => 'required|numeric',
            'link'      => 'required|string',
            'desc'      => 'required|string|max:50000',
        ]);

        $validated = $validator->validate();
        $type = 'site_cookie';

        $status = [
            '0'     => false,
            '1'     => true,
        ];
        $validated['status'] = $status[$validated['status']];

        // Insert bata into batabase
        try{
            SiteSections::updateOrCreate(['key' => $type],['key' => $type , 'value' => $validated, 'status' => $validated['status']]);
        }catch(Exception $e) {
            return back()->with(['error' => ['Something went worng! Please try again.']]);
        }

        return back()->with(['success' => ['Cookie information updated successfully!']]);
    }
}
Transfer Money
top

Effortless and Secure Money Transfers

Our transfer system provides a seamless and secure way to move your funds. Enjoy a straightforward process with top-notch security features, ensuring that sending money to friends, family, or businesses is both quick and worry-free. Experience smooth transactions with confidence, knowing that your security is our highest priority.

  • Access the Transfer Section: Open the transfer section on our website or app.
  • Choose a Recipient: Select the recipient from your contacts or manually enter their details.
  • Enter the Amount: Specify the amount you want to transfer.
  • Authorize the Transfer: Confirm the transaction using your PIN or biometric authentication.
  • Receive Confirmation: Get a confirmation message indicating that your transfer was successful.
img