<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class InvitationController extends Controller
{
    /**
     * Display invitations list
     */
    public function index()
    {
        return view('invitations.index');
    }

    /**
     * Send invitation to guest
     */
    public function send(Request $request)
    {
        return redirect()->route('invitations.index')->with('success', 'Invitation sent successfully!');
    }

    /**
     * Send bulk invitations
     */
    public function sendBulk(Request $request)
    {
        return redirect()->route('invitations.index')->with('success', 'Bulk invitations sent!');
    }

    /**
     * Resend invitation
     */
    public function resend($id)
    {
        return redirect()->route('invitations.index')->with('success', 'Invitation resent!');
    }

    /**
     * Show invitation template editor
     */
    public function template()
    {
        return view('invitations.template');
    }

    /**
     * Update invitation template
     */
    public function updateTemplate(Request $request)
    {
        return redirect()->route('invitations.template')->with('success', 'Template updated!');
    }

    /**
     * Show invitation statistics
     */
    public function statistics()
    {
        return view('invitations.statistics');
    }
}