<?php

namespace App\Http\Controllers\admin;

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

class Sub_categories extends Controller
{
    public function index() {
        return view('admin.sub_category.index'); 
    }

     public function create() {
        $categories = Category::all(); 
        return view('admin.sub_category.create',compact('categories')); 
    }

     public function store(Request $request) {
    }

    public function edit($id) {
        return view('admin.sub_category.edit'); 
    }
}
