@extends('layouts.main') @section('content')
{{ Form::open(['url' => 'topics/update/' . $id, 'method' => 'POST', 'name' => 'form', 'id' => 'createform', 'files' => true]) }}
トピックス編集(更新)

トピックス情報

{{-- 通知メッセージ --}} @if ($message <> "")
{{ Form::label("message", $message, ["class"=>"form-control btn-success btn"]) }}
@endif @if (session()->has('errors'))
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ Form::label("display_date","表示日",["class"=>"control-label btn"]) }} {{ Form::text("display_date", $data->display_date, ["class"=>"form-control", "id"=>"display_date", "style"=>"width:120px"]) }} {{ Form::label("start_date","掲載期間",["class"=>"control-label btn"]) }} {{ Form::text("start_date", $data->start_date, ["class"=>"form-control", "id"=>"start_date", "style"=>"width:120px"]) }} ~ {{ Form::text("end_date", $data->end_date, ["class"=>"form-control", "id"=>"end_date", "style"=>"width:120px"]) }}
{{ Form::label("title", "タイトル", ["class"=>"control-label btn"]) }} {{ Form::text("title", $data->title, ["class"=>"form-control validate[required]", "id"=>"title"]) }}
{{ Form::label("contents","登録内容",["class"=>"control-label btn"]) }} {{ Form::textarea("contents", $data->contents, ["class"=>"form-control validate[required]", "id"=>"contents", "rows"=>"10"]) }}
{{ Form::label("file1", "アップロードファイル", ["class"=>"control-label btn"]) }} {{ Form::file("file1", "", ["id"=>"file1", "class"=>"form_control"]) }} @if (!empty($files[0])) {{ Form::text("oldfile1", $files[0]->filename, ["class"=>"form-control", "id"=>"oldfile1", "readonly"=>"true", "style"=>"width:70%"]) }} {{ Form::hidden("oldpath1", $files[0]->filepath) }} {{ Form::checkbox('delfile1', 1, "", ['class' => 'for-control', "id"=>"delfile1"]) }} {{ Form::label("delfile1","削除",["class"=>"control-label btn"]) }} @endif
{{ Form::file("file2", "", ["id"=>"file2"]) }} @if (!empty($files[1])) {{ Form::text("oldfile2", $files[1]->filename, ["class"=>"form-control", "id"=>"oldfile2", "readonly"=>"true", "style"=>"width:70%"]) }} {{ Form::hidden("oldpath2", $files[1]->filepath) }} {{ Form::checkbox('delfile2', 1, "", ['class' => 'for-control', "id"=>"delfile2"]) }} {{ Form::label("delfile2","削除",["class"=>"control-label btn"]) }} @endif
{{ Form::file("file3", "", ["id"=>"file3"]) }} @if (!empty($files[2])) {{ Form::text("oldfile3", $files[2]->filename, ["class"=>"form-control", "id"=>"oldfile3", "readonly"=>"true", "style"=>"width:70%"]) }} {{ Form::hidden("oldpath3", $files[2]->filepath) }} {{ Form::checkbox('delfile3', 1, "", ['class' => 'for-control', "id"=>"delfile3"]) }} {{ Form::label("delfile3","削除",["class"=>"control-label btn"]) }} @endif
{{ Form::file("file4", "", ["id"=>"file4"]) }} @if (!empty($files[3])) {{ Form::text("oldfile4", $files[3]->filename, ["class"=>"form-control", "id"=>"oldfile4", "readonly"=>"true", "style"=>"width:70%"]) }} {{ Form::hidden("oldpath4", $files[3]->filepath) }} {{ Form::checkbox('delfile4', 1, "", ['class' => 'for-control', "id"=>"delfile4"]) }} {{ Form::label("delfile4","削除",["class"=>"control-label btn"]) }} @endif
{{ Form::file("file5", "", ["id"=>"file5"]) }} @if (!empty($files[4])) {{ Form::text("oldfile5", $files[4]->filename, ["class"=>"form-control", "id"=>"oldfile5", "readonly"=>"true", "style"=>"width:70%"]) }} {{ Form::hidden("oldpath5", $files[4]->filepath) }} {{ Form::checkbox('delfile5', 1, "", ['class' => 'for-control', "id"=>"delfile5"]) }} {{ Form::label("delfile5","削除",["class"=>"control-label btn"]) }} @endif
{{ Form::hidden("id", "", ["id"=>"id"]) }} {{ Form::hidden("code", "", ["id"=>"code"]) }} {{ Form::hidden("users", "", ["id"=>"users"]) }} {{ Form::submit(" 更新 ", ["class" => "btn btn-success", "onClick" => "execUpdate();" ]) }} {{ Form::button("キャンセル", ["class"=>"btn btn-default", "onClick"=>"javascript:window.history.back(-1);return false;"]) }} {{ Form::close() }}
@endsection