@extends('layout.layout') @php $submitText = '新增' @endphp @if (isset($site)) @php $submitText = '儲存' @endphp @section('images') @foreach ($site->images as $image)
@endforeach @endsection @section('files') @foreach ($site->attachments as $attachment)
@if (empty($attachment->name)){{$attachment->filename}}@else{{$attachment->name}}@endif
@endforeach @endsection @section('fee') @if ($site->id == 1) @foreach (config('site.arena_fee') as $key => $field) @if (isset($field['options'])) @foreach ($field['options'] as $value => $label)
{{$label}}
@if($errors->has('fee.'.$key.'.'.$value)) @foreach ($errors->get('fee.'.$key.'.'.$value) as $error)
{{$error}}
@endforeach @endif
@endforeach @else
時段
@if($errors->has('fee.'.$key)) @foreach ($errors->get('fee.'.$key) as $error)
{{$error}}
@endforeach @endif
@endif @endforeach @endif @endsection @endif {{-- Content --}} @section('content') @include('custom::component.reply-btn', ['url' => route('site.index')])
{{csrf_field()}} {!! $form->render() !!}
@if($errors->has('images.*')) @foreach($errors->get('images.*') as $key => $error)
{{ $errors->first($key) }}
@endforeach @endif
@yield('images')
@yield('files') @yield('fee')
@endsection {{-- Script --}} @section('script') @parent @endsection