<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\View\View;

class AccountingExpenseController extends Controller
{
    public function index(): View
    {
        return view('admin.accounting.expenses.index');
    }

    public function create(): View
    {
        return view('admin.accounting.expenses.create');
    }

    public function store(Request $request)
    {
        // Store logic here
        return redirect()->route('admin.accounting.expenses.index')->with('success', 'Expense created successfully');
    }

    public function show($id): View
    {
        return view('admin.accounting.expenses.show', ['expense' => null]);
    }

    public function edit($id): View
    {
        return view('admin.accounting.expenses.edit', ['expense' => null]);
    }

    public function update(Request $request, $id)
    {
        // Update logic here
        return redirect()->route('admin.accounting.expenses.index')->with('success', 'Expense updated successfully');
    }

    public function destroy($id)
    {
        // Delete logic here
        return redirect()->route('admin.accounting.expenses.index')->with('success', 'Expense deleted successfully');
    }
}
