This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.application') | |
@section('title', '詳細') | |
@section('content') | |
<br><br> | |
<div class="row"> | |
<label class="col-md-12 control-label">問題ID</label> | |
<div class="col-md-12">{{$problem->problemId}}</div> | |
</div> | |
<div class="row"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.application') | |
@section('title', '更新確認') | |
@section('content') | |
<br><br> | |
<form action="" method="post" class="form-horizontal"> | |
@csrf | |
<input type="hidden" name="problemId" value="{{$problemId}}"> | |
<input type="hidden" name="problemCategory" value="{{$problemCategory}}"> | |
<input type="hidden" name="problemTitle" value="{{$problemTitle}}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.application') | |
@section('title', '更新') | |
@section('content') | |
<br><br> | |
<form action="" method="post" class="form-horizontal"> | |
@csrf | |
{{ method_field('patch') }} | |
@include('layouts.errors') | |
<div class="row"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.application') | |
@section('title', '新規作成確認') | |
@section('content') | |
<br><br> | |
<form action="" method="post" class="form-horizontal"> | |
@csrf | |
<input type="hidden" name="problemId" value="{{$problemId}}"> | |
<input type="hidden" name="problemCategory" value="{{$problemCategory}}"> | |
<input type="hidden" name="problemTitle" value="{{$problemTitle}}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.application') | |
@section('title', '新規作成') | |
@section('content') | |
<br><br> | |
<form action="" method="post" class="form-horizontal"> | |
@csrf | |
{{ method_field('patch') }} | |
@include('layouts.errors') | |
<div class="form-group"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Models\problem; | |
Route::get('/', function () { | |
return view('welcome'); | |
}); | |
Route::group(['prefix' => 'problem'], function () { | |
//一覧 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Models\problem; | |
use Illuminate\Http\Request; | |
use Models; | |
class ProblemController extends Controller | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.application') | |
@section('title', '問題マスタ') | |
@section('script') | |
<script> | |
$(function() { | |
$(".btn-dell").click(function() { | |
if (confirm("本当に削除しますか?")) { | |
} else { | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (count($errors) > 0) | |
<!-- Form Error List --> | |
<div class="alert alert-danger"> | |
<div><strong>エラー</strong></div> | |
<div> | |
<ul> | |
@foreach ($errors->all() as $error) | |
<li>{{ $error }}</li> | |
@endforeach | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>@yield('title')</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="/css/app.css"> | |
</head> |
NewerOlder