<?php

namespace App\Http\Controllers;

use App\Models\Gallery;
use Illuminate\Http\Request;

class GalleryController extends Controller
{
    public function photos()
    {
        $photos = Gallery::where('type', 'photo')->latest()->paginate(24);
        return view('gallery.photos', compact('photos'));
    }

    public function videos()
    {
        $videos = Gallery::where('type', 'video')->latest()->paginate(16);
        return view('gallery.videos', compact('videos'));
    }
}
