Merge branch 'main' of https://git.so-manager-dev.com/so-manager/krgm.so-manager-dev.com
All checks were successful
Deploy main / deploy (push) Successful in 23s

This commit is contained in:
kin.rinzen 2025-10-10 16:36:31 +09:00
commit 3b7ae71d56
7 changed files with 291 additions and 224 deletions

View File

@ -160,7 +160,7 @@ class UsingStatusController extends Controller
foreach ($stats as $stat) {
$rows[] = [
(string) $stat->park_name,
(string) $stat->ptype_subject,
(string) $stat->psection_subject,
(string) $stat->park_limit,
(string) $stat->current_count,
(string) $stat->available,

View File

@ -25,46 +25,50 @@ class UsingStatusService
* @param int|null $parkId 駐輪場IDnull の場合は全て)
* @return Collection
*/
public function getUtilizationStats(?int $parkId = null): Collection
{
// park_number に車種IDが ptype_id で入っている前提
// 異なる場合は 'pn.ptype_id' 部分を実テーブル定義に合わせて変更してください
$query = DB::table('park as p')
->join('park_number as pn', 'p.park_id', '=', 'pn.park_id')
->join('ptype as pt', 'pn.ptype_id', '=', 'pt.ptype_id')
->select([
'p.park_id',
'p.park_name',
'pt.ptype_id',
'pt.ptype_subject',
// 限界収容台数
'pn.park_limit',
// 現在収容台数
DB::raw('COALESCE(pn.park_number, 0) as current_count'),
// 空き = 収容上限 - 現在
DB::raw('GREATEST(0, COALESCE(pn.park_limit, 0) - COALESCE(pn.park_number, 0)) as available'),
// 利用率 = 現在 / 上限 * 100
DB::raw("CASE
WHEN COALESCE(pn.park_limit, 0) > 0
THEN ROUND((COALESCE(pn.park_number, 0) / pn.park_limit) * 100, 1)
ELSE 0
END as usage_rate"),
])
->where('p.park_close_flag', '!=', 1);
public function getUtilizationStats(?int $parkId = null): \Illuminate\Support\Collection
{
// park_number に車種IDが ptype_id で入っている前提
// 異なる場合は 'pn.ptype_id' 部分を実テーブル定義に合わせて変更してください
if (!empty($parkId)) {
$query->where('p.park_id', $parkId);
}
// ✅ Laravel 12対応psectionテーブルから車種を取得するように変更
$query = \DB::table('park as p')
->join('park_number as pn', 'p.park_id', '=', 'pn.park_id')
// 旧: join('ptype as pt', 'pn.ptype_id', '=', 'pt.ptype_id')
->leftJoin('psection as ps', 'pn.psection_id', '=', 'ps.psection_id') // ✅ 新しい車種取得方法
->select([
'p.park_id',
'p.park_name',
// 'pt.ptype_id',
// 'pt.ptype_subject',
'ps.psection_subject', // 車種psection_subjectに変更
// 限界収容台数
'pn.park_limit',
// 現在収容台数
\DB::raw('COALESCE(pn.park_number, 0) as current_count'),
// 空き = 収容上限 - 現在
\DB::raw('GREATEST(0, COALESCE(pn.park_limit, 0) - COALESCE(pn.park_number, 0)) as available'),
// 利用率 = 現在 / 上限 * 100
\DB::raw("CASE
WHEN COALESCE(pn.park_limit, 0) > 0
THEN ROUND((COALESCE(pn.park_number, 0) / pn.park_limit) * 100, 1)
ELSE 0
END as usage_rate"),
])
->where('p.park_close_flag', '!=', 1);
$results = $query
// 表示順:自転車 → 原付 → その他
->orderByRaw("CASE pt.ptype_subject WHEN '自転車' THEN 1 WHEN '原付' THEN 2 ELSE 3 END")
->orderBy('p.park_name')
->get();
return $results;
if (!empty($parkId)) {
$query->where('p.park_id', $parkId);
}
$results = $query
// 表示順:自転車 → 原付 → その他
->orderByRaw("CASE ps.psection_subject WHEN '自転車' THEN 1 WHEN '原付' THEN 2 ELSE 3 END")
->orderBy('p.park_name')
->get();
return $results;
}
/**
* 駐輪場一覧を取得(選択用)
*/

View File

@ -41,7 +41,7 @@
alert('1件以上選択してください。');
return;
}
if (confirm('未発送のタグ発送用宛名を印刷してよろしいですか?')) {
if (confirm('タグ発送用宛名を印刷してよろしいですか?')) {
// 送信用form生成
var form = document.createElement('form');
form.method = 'POST';
@ -174,7 +174,7 @@
<td>{{ $user->user_tag_issue }}</td>
<td>
@if(!empty($user->user_seq))
<a href="{{ route('user_edit', ['seq' => $user->user_seq]) }}" target="_blank">
<a href="{{ route('users_edit', ['seq' => $user->user_seq]) }}" target="_blank">
{{ $user->user_name }}
</a>
@else

View File

@ -155,7 +155,7 @@ Laravel 12移行対応区画別利用率状況ページ
{{-- 車種 --}}
<td class="text-center align-middle">
{{ $stat->ptype_subject ?? 'その他' }}
{{ $stat->psection_subject }}
</td>
{{-- 限界収容台数 --}}

View File

@ -10,9 +10,10 @@
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg" style="font-size:1rem;">
パスワード再発行に関するメールを送信します。登録済みユーザIDおよびメールアドレスを入力してください。
パスワード再発行に関するメールを送信します。<br>登録済みメールアドレスを入力してください。
</p>
{{-- ★ここからエラー表示を追加★ --}}
{{-- ★全体エラー表示(任意)★ --}}
@if ($errors->any())
<div class="alert alert-danger">
<ul class="mb-0">
@ -22,24 +23,33 @@
</ul>
</div>
@endif
{{-- ★ここまでエラー表示を追加★ --}}
{{-- ★成功メッセージ表示★ --}}
@if (session('status'))
<div class="alert alert-success">{{ session('status') }}</div>
@endif
<form method="POST" action="{{ route('forgot_password.send') }}">
<form method="POST" action="{{ route('forgot_password.send') }}" novalidate>
@csrf
<div class="input-group mb-3">
<input type="email" name="email" class="form-control" placeholder="メールアドレス" required autofocus>
{{-- メールアドレス --}}
<div class="input-group mb-1">
<input type="email" name="email" class="form-control @error('email') @enderror"
placeholder="メールアドレス" autofocus value="{{ old('email') }}">
<div class="input-group-append">
<span class="fa fa-envelope input-group-text"></span>
</div>
</div>
<div class="input-group mb-3">
<input type="email" name="email_confirmation" class="form-control" placeholder="メールアドレス(確認)" required>
{{-- メールアドレス(確認) --}}
<div class="input-group mb-1">
<input type="email" name="email_confirmation" class="form-control @error('email_confirmation') @enderror"
placeholder="メールアドレス(確認)" value="{{ old('email_confirmation') }}">
<div class="input-group-append">
<span class="fa fa-envelope input-group-text"></span>
</div>
</div>
<div class="row mt40">
<div class="col-12">
<button type="submit" class="btn btn-lg btn-primary btn-block btn-flat">
@ -48,6 +58,7 @@
</div>
</div>
</form>
<p class="mb-1 mt50">
<a href="{{ route('login') }}">{{ __('ログイン画面に戻る') }}</a>
</p>

View File

@ -10,6 +10,7 @@
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">新しいパスワードを入力してください。</p>
@if ($errors->any())
<div class="alert alert-danger">
<ul class="mb-0">
@ -19,16 +20,32 @@
</ul>
</div>
@endif
<form method="POST" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<input type="hidden" name="email" value="{{ $email }}">
{{-- パスワード --}}
<div class="input-group mb-3">
<input type="password" name="password" class="form-control" placeholder="新しいパスワード" required>
<input type="password" name="password" id="password"
class="form-control @error('password') is-invalid @enderror"
placeholder="新しいパスワード" required>
</div>
@error('password')
<div class="text-danger mb-3">{{ $message }}</div>
@enderror
{{-- パスワード(確認) --}}
<div class="input-group mb-3">
<input type="password" name="password_confirmation" class="form-control" placeholder="新しいパスワード(確認)" required>
<input type="password" name="password_confirmation" id="password_confirmation"
class="form-control @error('password_confirmation') is-invalid @enderror"
placeholder="新しいパスワード(確認)" required>
</div>
@error('password_confirmation')
<div class="text-danger mb-3">{{ $message }}</div>
@enderror
<div class="row mt40">
<div class="col-12">
<button type="submit" class="btn btn-lg btn-primary btn-block btn-flat">
@ -37,6 +54,7 @@
</div>
</div>
</form>
<p class="mb-1 mt50">
<a href="{{ route('login') }}">ログイン画面に戻る</a>
</p>

View File

@ -51,9 +51,11 @@
<li class="nav-item d-lg-none">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fa fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a class="nav-link">{{ __('ようこそ、:ope_name様', ['ope_name' => Auth::user()->ope_name]) }}</a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a class="nav-link" style="margin-left:20px;">
{{ __('ようこそ、:ope_name様', ['ope_name' => Auth::user()->ope_name]) }}
</a>
</li>
</ul>
<!-- SEARCH FORM -->
@ -79,31 +81,32 @@
<span class="d-none d-md-inline">ハード異常:</span>
{{ $hardCount ?? 0 }}
@if(!empty($hardLatest))
<small class="d-none d-md-inline">
最新:{{ \Carbon\Carbon::parse($hardLatest)->format('Y/m/d H:i') }}
</small>
<small class="d-none d-md-inline">
最新:{{ \Carbon\Carbon::parse($hardLatest)->format('Y/m/d H:i') }}
</small>
@endif
</a>
@if(!empty($latestHards) && count($latestHards))
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-header">
ハード異常 {{ $hardCount }}件(未/進行中)
</span>
<div class="dropdown-divider"></div>
@foreach($latestHards as $hq)
<a href="{{ route('information', ['type'=>'hard','status'=>'untreated','period'=>'all']) }}" class="dropdown-item"
style="white-space:normal;">
{{ Str::limit($hq->que_comment ?? 'ハード異常', 40) }}
<span class="float-right text-muted text-sm">
{{ \Carbon\Carbon::parse($hq->created_at)->diffForHumans() }}
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-header">
ハード異常 {{ $hardCount }}件(未/進行中)
</span>
</a>
<div class="dropdown-divider"></div>
@endforeach
<a href="{{ route('information', ['type'=>'hard','period'=>'all']) }}" class="dropdown-item dropdown-footer">
すべてを見る
</a>
</div>
<div class="dropdown-divider"></div>
@foreach($latestHards as $hq)
<a href="{{ route('information', ['type' => 'hard', 'status' => 'untreated', 'period' => 'all']) }}"
class="dropdown-item" style="white-space:normal;">
{{ Str::limit($hq->que_comment ?? 'ハード異常', 40) }}
<span class="float-right text-muted text-sm">
{{ \Carbon\Carbon::parse($hq->created_at)->diffForHumans() }}
</span>
</a>
<div class="dropdown-divider"></div>
@endforeach
<a href="{{ route('information', ['type' => 'hard', 'period' => 'all']) }}"
class="dropdown-item dropdown-footer">
すべてを見る
</a>
</div>
@endif
</li>
@ -114,31 +117,32 @@
<span class="d-none d-md-inline">タスク:</span>
{{ $taskCount ?? 0 }}
@if(!empty($taskLatest))
<small class="d-none d-md-inline">
最新:{{ \Carbon\Carbon::parse($taskLatest)->format('Y/m/d H:i') }}
</small>
<small class="d-none d-md-inline">
最新:{{ \Carbon\Carbon::parse($taskLatest)->format('Y/m/d H:i') }}
</small>
@endif
</a>
@if(!empty($latestTasks) && count($latestTasks))
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-header">
タスク {{ $taskCount }}件(未/進行中)
</span>
<div class="dropdown-divider"></div>
@foreach($latestTasks as $tq)
<a href="{{ route('information', ['type'=>'task','status'=>'untreated','period'=>'all']) }}" class="dropdown-item"
style="white-space:normal;">
{{ Str::limit($tq->que_comment ?? 'タスク', 40) }}
<span class="float-right text-muted text-sm">
{{ \Carbon\Carbon::parse($tq->created_at)->diffForHumans() }}
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-header">
タスク {{ $taskCount }}件(未/進行中)
</span>
</a>
<div class="dropdown-divider"></div>
@endforeach
<a href="{{ route('information', ['type'=>'task','period'=>'all']) }}" class="dropdown-item dropdown-footer">
過去のタスクを全て見る
</a>
</div>
<div class="dropdown-divider"></div>
@foreach($latestTasks as $tq)
<a href="{{ route('information', ['type' => 'task', 'status' => 'untreated', 'period' => 'all']) }}"
class="dropdown-item" style="white-space:normal;">
{{ Str::limit($tq->que_comment ?? 'タスク', 40) }}
<span class="float-right text-muted text-sm">
{{ \Carbon\Carbon::parse($tq->created_at)->diffForHumans() }}
</span>
</a>
<div class="dropdown-divider"></div>
@endforeach
<a href="{{ route('information', ['type' => 'task', 'period' => 'all']) }}"
class="dropdown-item dropdown-footer">
過去のタスクを全て見る
</a>
</div>
@endif
</li>
<li class="nav-item">
@ -157,24 +161,24 @@
</a>
<div class="sidebar">
@php
// タグ・シール管理
$tagRoutes = [
'tags', // 例: タグ・シール管理のroute名
];
// 集計業務
$aggregateRoutes = [
'aggregate', // 例: 集計業務のroute名
];
// 決済マスタ
$settlementRoutes = [
'settlement1',
'settlement2', // 決済マスタの各route名
];
// システムマスタ
$systemRoutes = [
'system1',
'system2', // システムマスタの各route名
];
// タグ・シール管理
$tagRoutes = [
'tags', // 例: タグ・シール管理のroute名
];
// 集計業務
$aggregateRoutes = [
'aggregate', // 例: 集計業務のroute名
];
// 決済マスタ
$settlementRoutes = [
'settlement1',
'settlement2', // 決済マスタの各route名
];
// システムマスタ
$systemRoutes = [
'system1',
'system2', // システムマスタの各route名
];
@endphp
@ -184,54 +188,51 @@
data-accordion="false">
<!-- OU START -->
<!-- ホーム(親) -->
<li class="nav-item has-treeview menu-open">
<a href="/home" class="nav-link active">
<li class="nav-item has-treeview {{ request()->routeIs('information') ? 'menu-open' : '' }}">
<a href="#" class="nav-link {{ request()->routeIs('information') ? 'active' : '' }}">
<i class="nav-icon fa fa-home"></i>
<p>
ホーム
<i class="right fa fa-angle-down"></i>
</p>
</a>
<ul class="nav nav-treeview" style="display:block;">
<ul class="nav nav-treeview"
style="{{ request()->routeIs('information') ? 'display:block;' : 'display:none;' }}">
<li class="nav-item">
<a href="#" class="nav-link">
<i class="fa fa-circle-o nav-icon"></i>
<p>ハードウェア異常表示</p>
<span style="margin-left:20px;">ハードウェア異常表示</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('information') }}"
class="nav-link {{ request()->routeIs('information') ? 'active' : '' }}">
<i class="nav-icon fa fa-info-circle"></i>
<p>常時表示インフォメーション</p>
<span style="margin-left:20px;">常時表示インフォメーション</span>
</a>
</li>
</ul>
</li>
@php
// <!-- タグ・シール管理 -->
$webRoutes = [
'tagissue', // タグ発行キュー処理、履歴表示
'seals', // タグシール管理
];
// <!-- タグ・シール管理 -->
$webRoutes = [
'tagissue', // タグ発行キュー処理、履歴表示
'seals', // タグシール管理
];
@endphp
<li
class="nav-item has-treeview @if(in_array(app('router')->currentRouteName(), $webRoutes)) menu-open @endif">
<a href="#"
class="nav-link @if(in_array(app('router')->currentRouteName(), $webRoutes)) active @endif">
<i class="nav-icon fa fa-tags"></i>
<p>タグ・シール管理</p>
<i class="nav-icon fa fa-repeat"></i>
<p>タグ・シール管理
<i class="right fa fa-angle-down"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ route('tagissue') }}"
class="nav-link @if(app('router')->currentRouteName() === 'tagissue') active @endif">
<span style="margin-left:20px;">タグ発行キュー処理、履歴表示</span>
</a>
</li>
@ -248,16 +249,16 @@
</li>
@php
// 定期駐輪管理:ルート名がここに含まれている場合、展開&ハイライト
$parkingRoutes = [
'periodical', // 定期利用・契約状況
'contractor', // 契約者一覧
'contractor_List', // 未更新者一覧
'update_candidate', // 更新予定者一覧
'reservation', // 予約者一覧
'personal', // 本人確認手動処理
'using_status', // 区画別利用率状況
];
// 定期駐輪管理:ルート名がここに含まれている場合、展開&ハイライト
$parkingRoutes = [
'periodical', // 定期利用・契約状況
'contractor', // 契約者一覧
'contractor_List', // 未更新者一覧
'update_candidate', // 更新予定者一覧
'reservation', // 予約者一覧
'personal', // 本人確認手動処理
'using_status', // 区画別利用率状況
];
@endphp
<li
@ -345,12 +346,12 @@
<p>集計業務</p>
</a>
@php
// 一般ウェブ管理:ルート名がここに含まれている場合、展開&ハイライト
$webRoutes = [
'news', // 最新ニュース登録
];
@endphp
@php
// 一般ウェブ管理:ルート名がここに含まれている場合、展開&ハイライト
$webRoutes = [
'news', // 最新ニュース登録
];
@endphp
<li
class="nav-item has-treeview @if(in_array(app('router')->currentRouteName(), $webRoutes)) menu-open @endif">
<a href="#"
@ -372,13 +373,13 @@
</li>
@php
// 利用者マスタ:ルート名がここに含まれている場合、展開&ハイライト
$userGroupRoutes = [
'users', // 利用者マスタ
'regularcontracts', // 定期契約マスタ
'reserves', // 定期予約マスタ
'usertypes', // 定期予約マスタ
];
// 利用者マスタ:ルート名がここに含まれている場合、展開&ハイライト
$userGroupRoutes = [
'users', // 利用者マスタ
'regularcontracts', // 定期契約マスタ
'reserves', // 定期予約マスタ
'usertypes', // 定期予約マスタ
];
@endphp
<li
@ -426,28 +427,28 @@
<!-- 駐輪場マスタ -->
@php
// 駐輪場マスタ:ルート名がここに含まれている場合、展開&ハイライト
$parkingRoutes = [
'ptypes',
'parks',
'managers',
'print_areas',
'regular_types',
'jurisdiction_parkings',
'city',
'pricelist',
'prices',
'psections',
'price_add',
'price_info',
'price_edit',
'zones',
'stations',
'terms',
'contract_allowable_cities',
'pplaces',
];
$current = app('router')->currentRouteName();
// 駐輪場マスタ:ルート名がここに含まれている場合、展開&ハイライト
$parkingRoutes = [
'ptypes',
'parks',
'managers',
'print_areas',
'regular_types',
'jurisdiction_parkings',
'city',
'pricelist',
'prices',
'psections',
'price_add',
'price_info',
'price_edit',
'zones',
'stations',
'terms',
'contract_allowable_cities',
'pplaces',
];
$current = app('router')->currentRouteName();
@endphp
<!-- 駐輪場マスタ -->
@ -459,59 +460,71 @@
<i class="right fa fa-angle-down"></i>
</p>
</a>
<ul class="nav nav-treeview" style="display: @if(in_array($current, $parkingRoutes)) block @else none @endif;">
<ul class="nav nav-treeview"
style="display: @if(in_array($current, $parkingRoutes)) block @else none @endif;">
<li class="nav-item">
<a href="{{ route('parks') }}" class="nav-link @if($current === 'parks') active @endif">
<a href="{{ route('parks') }}"
class="nav-link @if($current === 'parks') active @endif">
<span style="margin-left:20px;">{{ __("駐輪場マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('city') }}" class="nav-link @if($current === 'city') active @endif">
<a href="{{ route('city') }}"
class="nav-link @if($current === 'city') active @endif">
<span style="margin-left:20px;">{{ __("市区マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('pricelist') }}" class="nav-link @if($current === 'pricelist') active @endif">
<a href="{{ route('pricelist') }}"
class="nav-link @if($current === 'pricelist') active @endif">
<span style="margin-left:20px;">{{ __("料金一覧表") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('prices') }}" class="nav-link @if($current === 'prices') active @endif">
<a href="{{ route('prices') }}"
class="nav-link @if($current === 'prices') active @endif">
<span style="margin-left:20px;">{{ __("駐輪場所、料金マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('psections') }}" class="nav-link @if($current === 'psections') active @endif">
<a href="{{ route('psections') }}"
class="nav-link @if($current === 'psections') active @endif">
<span style="margin-left:20px;">{{ __("車種区分マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('ptypes') }}" class="nav-link @if($current === 'ptypes') active @endif">
<a href="{{ route('ptypes') }}"
class="nav-link @if($current === 'ptypes') active @endif">
<span style="margin-left:20px;">{{ __("駐輪分類マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('zones') }}" class="nav-link @if($current === 'zones') active @endif">
<a href="{{ route('zones') }}"
class="nav-link @if($current === 'zones') active @endif">
<span style="margin-left:20px;">{{ __("ゾーンマスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('pplaces') }}" class="nav-link @if($current === 'pplaces') active @endif">
<a href="{{ route('pplaces') }}"
class="nav-link @if($current === 'pplaces') active @endif">
<span style="margin-left:20px;">{{ __("駐輪車室マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('stations') }}" class="nav-link @if($current === 'stations') active @endif">
<a href="{{ route('stations') }}"
class="nav-link @if($current === 'stations') active @endif">
<span style="margin-left:20px;">{{ __("近傍駅マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('regular_types') }}" class="nav-link @if($current === 'regular_types') active @endif">
<a href="{{ route('regular_types') }}"
class="nav-link @if($current === 'regular_types') active @endif">
<span style="margin-left:20px;">{{ __("定期種別マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('terms') }}" class="nav-link @if($current === 'terms') active @endif">
<a href="{{ route('terms') }}"
class="nav-link @if($current === 'terms') active @endif">
<span style="margin-left:20px;">{{ __("利用規約マスタ") }}</span>
</a>
</li>
@ -521,17 +534,20 @@
</a>
</li> -->
<li class="nav-item">
<a href="{{ route('print_areas') }}" class="nav-link @if($current === 'print_areas') active @endif">
<a href="{{ route('print_areas') }}"
class="nav-link @if($current === 'print_areas') active @endif">
<span style="margin-left:20px;">{{ __("シール印刷範囲マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('contract_allowable_cities') }}" class="nav-link @if($current === 'contract_allowable_cities') active @endif">
<a href="{{ route('contract_allowable_cities') }}"
class="nav-link @if($current === 'contract_allowable_cities') active @endif">
<span style="margin-left:20px;">{{ __("契約許容市区マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('managers') }}" class="nav-link @if($current === 'managers') active @endif">
<a href="{{ route('managers') }}"
class="nav-link @if($current === 'managers') active @endif">
<span style="margin-left:20px;">{{ __("駐輪場管理者マスタ") }}</span>
</a>
</li>
@ -539,13 +555,13 @@
</li>
@php
// 決済マスタ:ルート名がここに含まれている場合、展開&ハイライト
$paymentRoutes = [
'tax', // 消費税マスタ
'payments', // 決済情報マスタ
'settlement_transactions', // 決済トランザクション
];
$current = app('router')->currentRouteName();
// 決済マスタ:ルート名がここに含まれている場合、展開&ハイライト
$paymentRoutes = [
'tax', // 消費税マスタ
'payments', // 決済情報マスタ
'settlement_transactions', // 決済トランザクション
];
$current = app('router')->currentRouteName();
@endphp
<!-- 決済マスタ -->
@ -558,10 +574,10 @@
</p>
</a>
<ul class="nav nav-treeview" style="display: @if(in_array($current, $paymentRoutes)) block @else none @endif;">
<ul class="nav nav-treeview"
style="display: @if(in_array($current, $paymentRoutes)) block @else none @endif;">
<li class="nav-item">
<a href="{{ route('tax') }}"
class="nav-link @if($current === 'tax') active @endif">
<a href="{{ route('tax') }}" class="nav-link @if($current === 'tax') active @endif">
<span style="margin-left:20px;">{{ __('消費税マスタ') }}</span>
</a>
</li>
@ -582,15 +598,15 @@
@php
// システムマスタ:ルート名がここに含まれている場合、展開&ハイライト
$systemRoutes = [
'opes',
'devices',
'operator_ques',
'settings',
'mail_templates',
];
$current = app('router')->currentRouteName();
// システムマスタ:ルート名がここに含まれている場合、展開&ハイライト
$systemRoutes = [
'opes',
'devices',
'operator_ques',
'settings',
'mail_templates',
];
$current = app('router')->currentRouteName();
@endphp
<!-- システムマスタ -->
@ -602,31 +618,37 @@
<i class="right fa fa-angle-down"></i>
</p>
</a>
<ul class="nav nav-treeview" style="display: @if(in_array($current, $systemRoutes)) block @else none @endif;">
<ul class="nav nav-treeview"
style="display: @if(in_array($current, $systemRoutes)) block @else none @endif;">
<li class="nav-item">
<a href="{{ route('opes') }}" class="nav-link @if($current === 'opes') active @endif">
<a href="{{ route('opes') }}"
class="nav-link @if($current === 'opes') active @endif">
<span style="margin-left:20px;">{{ __("オペレータマスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('devices') }}" class="nav-link @if($current === 'devices') active @endif">
<a href="{{ route('devices') }}"
class="nav-link @if($current === 'devices') active @endif">
<span style="margin-left:20px;">{{ __("デバイス管理マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('operator_ques') }}" class="nav-link @if($current === 'operator_ques') active @endif">
<a href="{{ route('operator_ques') }}"
class="nav-link @if($current === 'operator_ques') active @endif">
<i class="nav-icon"></i>
<span style="margin-left:20px;">{{ __("オペレータキュー") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('settings') }}" class="nav-link @if($current === 'settings') active @endif">
<a href="{{ route('settings') }}"
class="nav-link @if($current === 'settings') active @endif">
<i class="nav-icon"></i>
<span style="margin-left:20px;">{{ __("設定マスタ") }}</span>
</a>
</li>
<li class="nav-item">
<a href="{{ route('mail_templates') }}" class="nav-link @if($current === 'mail_templates') active @endif">
<a href="{{ route('mail_templates') }}"
class="nav-link @if($current === 'mail_templates') active @endif">
<span style="margin-left:20px;">{{ __("メール送信テンプレート") }}</span>
</a>
</li>
@ -634,11 +656,11 @@
</li>
@php
// マスタ管理:ルート名がここに含まれている場合、展開&ハイライト
$masterRoutes = [
'inv_settings',
];
$current = app('router')->currentRouteName();
// マスタ管理:ルート名がここに含まれている場合、展開&ハイライト
$masterRoutes = [
'inv_settings',
];
$current = app('router')->currentRouteName();
@endphp
<!-- マスタ管理 -->
@ -650,9 +672,11 @@
<i class="right fa fa-angle-down"></i>
</p>
</a>
<ul class="nav nav-treeview" style="display: @if(in_array($current, $masterRoutes)) block @else none @endif;">
<ul class="nav nav-treeview"
style="display: @if(in_array($current, $masterRoutes)) block @else none @endif;">
<li class="nav-item">
<a href="{{ route('inv_settings') }}" class="nav-link @if($current === 'inv_settings') active @endif">
<a href="{{ route('inv_settings') }}"
class="nav-link @if($current === 'inv_settings') active @endif">
<span style="margin-left:20px;">{{ __("インボイス設定") }}</span>
</a>
</li>
@ -794,6 +818,16 @@
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
<style>
.main-sidebar {
width: 280px;
}
.content-wrapper {
margin-left: 280px;
}
</style>
</body>
</html>