@extends('layout.layout') {{-- Style --}} @push('links') @endpush {{-- Content --}} @section('content') @include('custom::component.reply-btn', ['url' => $back_route])
@csrf @if(!isset($model))
@php $recipientable_type = old('recipientable_type',isset($model)?$model->recipientable_type:'personal'); @endphp
@foreach($recipientable_type_options as $option)
first) required @endif @if($recipientable_type==$option->slug) checked @endif >
@endforeach
@if ($errors->has('recipientable_type')) @foreach($errors->get('recipientable_type') as $error)
{{ $error }}
@endforeach @endif
@php $uid = old('uid',null); @endphp @if ($errors->has('uid')) @foreach($errors->get('uid') as $error)
{{ $error }}
@endforeach @endif
@endif
@php $has_notification = old('has_notification',isset($model)?$model->has_notification:'Y'); @endphp
@if ($errors->has('has_notification')) @foreach($errors->get('has_notification') as $error)
{{ $error }}
@endforeach @endif
@if ($errors->has('title')) @foreach($errors->get('title') as $error)
{{ $error }}
@endforeach @endif
@if ($errors->has('content')) @foreach($errors->get('content') as $error)
{{ $error }}
@endforeach @endif
@component('component.single_file',['name'=>'file','model'=>isset($model)?$model:null,'file_url'=>isset($model)?route('message.file',['uuid'=>$model->uuid, 'filename' => $model->file_display_name]):null,'mimes'=>'image/jpeg,image/png,.doc,.odt,.ods,.pdf']) @endcomponent 上傳格式:.jpeg, .png, .doc, .pdf, .odt, .ods
@endsection {{-- Script --}} @push('scripts') @endpush