<?php

namespace App\Http\Controllers\Meet;

use App\Http\Controllers\Controller;
use App\Http\Controllers\Meet\Concerns\ScopesToAccount;
use App\Models\AiSummary;
use Illuminate\Http\Request;
use Illuminate\View\View;

class SummaryController extends Controller
{
    use ScopesToAccount;

    public function show(Request $request, AiSummary $summary): View
    {
        $this->authorizeAbility($request, 'meetings.view');
        $this->authorizeOwner($request, $summary);
        $summary->load(['session.room', 'actionItems', 'transcript']);

        return view('meet.summaries.show', compact('summary'));
    }
}
