<?php

namespace App\Http\Controllers;

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

class MailLogController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $lists = MailLog::with('clients')->orderBy('id','desc')->paginate(100);
        
        return view('mailLog.index', compact('lists'));
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  \App\Models\MailLog  $mailLog
     * @return \Illuminate\Http\Response
     */
    public function show(MailLog $mailLog)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\MailLog  $mailLog
     * @return \Illuminate\Http\Response
     */
    public function edit(MailLog $mailLog)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\MailLog  $mailLog
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, MailLog $mailLog)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\MailLog  $mailLog
     * @return \Illuminate\Http\Response
     */
    public function destroy(MailLog $mailLog)
    {
        //
    }
}
