@extends('layout/layout') {{-- Style --}} @push('links') @endpush @inject('dateHelper', 'Modules\Survey\Http\Helpers\ViewHelper') {{-- Content --}} @section('content') @include('custom::component.reply-btn', ['url' => $back_route]) @php $bulletin_type = old('bulletin_type',isset($model)? optional($model->bulletin)->type:$default_bulletin_type); @endphp
@csrf @if(!isset($model))
@foreach($bulletin_type_options as $option)
first)? ' required': '' }} {{ ($bulletin_type == $option->slug)? ' checked':'' }} >
@endforeach
@include('custom::components/form/invalid', ['name' => 'bulletin_type'])
@include('custom::components/form/invalid', ['name' => 'department_id'])
@endif @if($bulletin_type=='department' || !isset($model))
department_only)? $model->department_only:null) == 1)? ' checked':'' }} >
department_only)? $model->department_only:null) == 0)? ' checked':'' }} >
@include('custom::components/form/invalid', ['name' => 'department_only'])
@endif
@php $type_id = old('type_id',isset($model)?$model->type_id:1); @endphp @if(isset($model) && in_array($model->status_id, [5, 10, 15])) @endif @include('custom::components/form/invalid', ['name' => 'type_id'])
@php $status_id = old('status_id',isset($model)?$model->status_id:1); @endphp @include('custom::components/form/invalid', ['name' => 'status_id'])
@include('custom::components/form/invalid', ['name' => 'start_date'])
@include('custom::components/form/invalid', ['name' => 'end_date'])
@if(isset($model) && in_array($model->status_id, [5, 10, 15])) @endif @include('custom::components/form/invalid', ['name' => 'published_department_id'])
status_id, [5, 10, 15])) disabled @endif> @if(isset($model) && in_array($model->status_id, [5, 10, 15])) @endif 標題長度最多為75個字 @include('custom::components/form/invalid', ['name' => 'title'])
@include('custom::components/form/invalid', ['name' => 'content'])
@isset($model)
@foreach($model->files as $file)
{{ $file['name'] }} ({{$file['display_size']}}) @if(isset($model) && !in_array($model->status_id, [5, 10, 15])) @endif
@endforeach
@endisset
@endsection {{-- Script --}} @push('scripts') @endpush