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

トピックス情報

{{-- 通知メッセージ --}} @if (session()->has('message'))
{{ Form::label("message", session()->get('message'), ["class"=>"form-control btn-success btn"]) }}
@endif
{{ Form::label("contents","登録内容",["class"=>"control-label btn"]) }} {{ Form::textarea("contents", $data->contents, ["class"=>"form-control", "id"=>"contents", 'rows' => '10']) }}
{{ Form::label("file1","アップロードファイル",["class"=>"control-label btn"]) }} @if (!empty($files[0])) {{ Form::text("oldfile1", $files[0]->filename, ["class"=>"form-control", "id"=>"oldfile1", "readonly"=>"true"]) }} @endif {{ Form::file("file1", ["class"=>"form-control", "id"=>"file1", "style"=>"display:inline"]) }}
@if (!empty($files[1])) {{ Form::text("oldfile2", $files[1]->filename, ["class"=>"form-control", "id"=>"oldfile2", "readonly"=>"true"]) }} @endif {{ Form::file("file2", ["class"=>"form-control", "id"=>"file2", "style"=>"display:inline"]) }}
@if (!empty($files[2])) {{ Form::text("oldfile3", $files[2]->filename, ["class"=>"form-control", "id"=>"oldfile3", "readonly"=>"true"]) }} @endif {{ Form::file("file3", ["class"=>"form-control", "id"=>"file3", "style"=>"display:inline"]) }}
@if (!empty($files[3])) {{ Form::text("oldfile4", $files[3]->filename, ["class"=>"form-control", "id"=>"oldfile4", "readonly"=>"true"]) }} @endif {{ Form::file("file4", ["class"=>"form-control", "id"=>"file4", "style"=>"display:inline"]) }}
@if (!empty($files[4])) {{ Form::text("oldfile5", $files[4]->filename, ["class"=>"form-control", "id"=>"oldfile5", "readonly"=>"true"]) }} @endif {{ Form::file("file5", ["class"=>"form-control", "id"=>"file5", "style"=>"display:inline"]) }}
{!! Form::hidden("id", $id, ["id"=>"id"]) !!} {!! Form::hidden("code", "", ["id"=>"code"]) !!} {!! Form::hidden("display_date", "", ["id"=>"display_date"]) !!} {!! Form::hidden("start_date", "", ["id"=>"start_date"]) !!} {!! Form::hidden("end_date", "", ["id"=>"end_date"]) !!} {!! Form::hidden("title", "", ["id"=>"title"]) !!} {!! Form::submit(" 更新 ", ["class"=>"btn btn-primary"]) !!}  {!! Form::button("キャンセル", ["class"=>"btn btn-default clearForm"]) !!} {!! Form::close() !!}
@endsection