@extends('layout.layout') {{-- Content --}} @section('content') @if(Request::is('site/*/peripheral/create')) @include('custom::component.reply-btn', ['url' => route('site.peripheral.index', $id)]) @php $text = '新增' @endphp @elseif(Request::is('site/*/peripheral/*/edit')) @include('custom::component.reply-btn', ['url' => route('site.peripheral.index', $peripheral->site_id)]) @php $text = '儲存' @endphp @endif