<?php

namespace App\Http\Controllers;

use App\Models\Advert;
use App\Models\Article;
use App\Models\Resume;
use Illuminate\Http\Request;

class ResumeController extends Controller
{

    /**
     * Notes: 显示详情
     *
     * @Author: 玄尘
     * @Date: 2021/12/1 10:46
     * @param  \App\Models\Resume  $resume
     * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function show(Resume $resume)
    {
        $category = $resume->category;
        $parent   = $category;
        if ($category->childrens->isEmpty() && $category->parent) {
            $parent = $category->parent;
        }
        return view('resume.show', compact('resume', 'category','parent'));

    }


}
