Commit a1138caa by o.kimura

開発管理ファイルを削除

parent 0e6f0290
@extends('web.admin.layout')
@section('content')
<form action="{{ route('experience_seminars.update', ['experience_seminar' => $seminar->id]) }}" method="POST" enctype="multipart/form-data">
@csrf
@method('PUT')
<div class="form-row">
<div class="form-group col-sm-2">セミナー名</div>
<div class="form-group col-sm-10">
{{ $seminar->seminar_name }}
</div>
</div>
<div class="form-row">
<div class="form-group" style="color: red">
@if ($errors->has('image'))
{{$errors->first('image')}}
@endif
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">料金</div>
<div class="form-group col-sm-10">
@foreach (App\Seminar::$pay_flg as $key => $name)
<div class="form-check">
<input class="form-check-input" type="radio" id="pay_flg_{{ $key }}" name="pay_flg" value={{ $key }} @if($seminar->pay_flg == $key) checked="checked" @endif>
<label class="form-check-label" for="pay_flg_{{ $key }}">{{ $name }} </label>
</div>
@endforeach
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">リード文</div>
<div class="form-group col-sm-10">
<textarea class="form-control" name="lead_text" rows="3">{{ $seminar->lead_text }}</textarea>
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">リンクURL</div>
<div class="form-group col-sm-10">
<input class="form-control" type="text" name="link_url" value="{{ $seminar->link_url }}" />
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">画像</div>
<div class="form-group col-sm-10">
@if($seminar->img_path)
<img src="{{ $seminar->img_path }}" class="img-thumbnail">
@endif
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2"></div>
<div class="form-group col-sm-10">
<input class="form-check-input" type="file" id="image" name="image" class="form-control">
</div>
</div>
<div style="margin-top:30px;">
<a href="{{ route('experience_seminars.index') }}" class="btn btn-outline-primary" href="#" role="button">戻る</a>
<button type="submit" class="btn btn-primary">更新する</button>
</div>
</form>
@endsection
@extends('web.admin.layout')
@section('content')
<div class="container">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>セミナー名</th>
<th>有料/無料</th>
<th>リード文</th>
<th>操作</th>
</tr>
</thead>
<tbody>
@foreach($seminars as $seminar)
<tr>
<td>{{ $seminar->seminar_name }}</td>
<td>@if(isset($seminar->pay_flg)) {{ App\Seminar::$pay_flg[$seminar->pay_flg] }} @endif</td>
<td>{{ mb_strimwidth($seminar->lead_text, 0, 30, "...", "UTF-8") }}</td>
<td><a href="{{ route('experience_seminars.edit', ['experience_seminar' => $seminar->id]) }}">編集</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endsection
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</head>
<body>
<div style="margin-bottom: 30px;">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">管理画面</a>
<div class="collapse navbar-collapse" id="Navber">
<ul class="navbar-nav mr-auto">
<li class="nav-item @if(request()->is('*schedules*')) active @endif">
<a class="nav-link" href="{{ route('schedules.index') }}">スケジュール</a>
</li>
<li class="nav-item @if(request()->is('*experience_seminars*')) active @endif">
<a class="nav-link" href="{{ route('experience_seminars.index') }}">体験セミナー</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
{{ Auth::user()->name }} <span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
ログアウト
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</div>
</li>
</ul>
</div>
</nav>
</div>
<div style="margin: 0px 60px;">
@yield('content')
</div>
</body>
</html>
\ No newline at end of file
@extends('web.admin.layout')
@section('content')
<form action="{{ route('schedules.update', ['schedule' => $schedule->id]) }}" method="POST">
@csrf
@method('PUT')
<div class="form-row">
<div class="form-group col-sm-2">セミナーID</div>
<div class="form-group col-sm-10">
{{ $schedule->res_seminar_id }}
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">セミナー区分ID</div>
<div class="form-group col-sm-10">
{{ $schedule->res_seminar_division_id }}
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">セミナー名</div>
<div class="form-group col-sm-10">
{{ $schedule->res_seminar_name }}
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">開催日</div>
<div class="form-group col-sm-10">
{{ substr($schedule->res_seminar_date, 0, 4) }}年{{ $schedule->dulation_date_and_week }}
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">開催地</div>
<div class="form-group col-sm-10">
{{ $schedule->res_seminar_pref }}
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-2">ステータス</div>
<div class="form-group col-sm-10">
@foreach (App\Schedule::$status as $key => $name)
<div class="form-check">
<?php $disabled = '' ?>
<?php $disabledStyle = '' ?>
@if ($key == config('parameters.seminar_status.value.attend_full') || $key == config('parameters.seminar_status.value.retake_full'))
<?php $disabled = 'disabled="disabled"' ?>
<?php $disabledStyle = 'style="color: #ccc;"' ?>
@if ($schedule->apply_url_2)
<?php $disabled = '' ?>
<?php $disabledStyle = '' ?>
@endif
@endif
<input class="form-check-input" type="radio" id="status_id_{{ $key }}" name="status" value={{ $key }} @if($schedule->status == $key) checked="checked" @endif {{ $disabled }}>
<label class="form-check-label" for="status_id_{{ $key }}" {!! $disabledStyle !!}>{{ $name }} </label>
</div>
@endforeach
</div>
</div>
<div style="margin-top:30px;">
<a href="{{ route('schedules.index') }}" class="btn btn-outline-primary" href="#" role="button">戻る</a>
<button type="submit" class="btn btn-primary">更新する</button>
</div>
</form>
@endsection
@extends('web.admin.layout')
@section('content')
<div class="container">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>セミナーID</th>
<th>セミナー名</th>
<th>開催日</th>
<th>開催地</th>
<th>ステータス</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{{ $schedules->links() }}
@foreach($schedules as $schedule)
<tr>
<td>{{ $schedule->res_seminar_id }}</td>
<td>{{ $schedule->seminar->seminar_name }}</td>
<td>{{ substr($schedule->res_seminar_date, 0, 4) }}年{{ $schedule->dulation_date_and_week }}</td>
<td>{{ $schedule->res_seminar_pref }}</td>
<td>{{ App\Schedule::$status[$schedule->status] }}</td>
<td><a href="{{ route('schedules.edit', ['schedule' => $schedule->id]) }}">ステータス編集</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
@endsection
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment