From 40526ea0cff2fb3849af668c8c7d6c594292047c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=A0=E7=9A=84=E5=90=8D=E5=AD=97?= <你的邮箱>
Date: Sat, 23 Aug 2025 20:32:52 +0900
Subject: [PATCH 1/8] =?UTF-8?q?=E7=94=BB=E9=9D=A2=E3=82=A8=E3=83=A9?=
=?UTF-8?q?=E3=83=BC=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/Http/Controllers/Admin/ParkController.php | 38 +-
.../Controllers/Admin/PriceController.php | 84 +-
app/Legacy/User.php | 1 -
app/Models/Park.php | 143 +++-
app/Models/Ptype.php | 47 +-
public/index.php | 2 -
resources/views/admin/parks/_form.blade.php | 746 ++++++++++++++----
resources/views/admin/parks/add.blade.php | 108 +--
resources/views/admin/parks/edit.blade.php | 103 +--
resources/views/admin/parks/list.blade.php | 364 +++++----
resources/views/admin/prices/_form.blade.php | 226 +++---
resources/views/admin/prices/add.blade.php | 12 +-
resources/views/admin/prices/edit.blade.php | 25 -
resources/views/admin/prices/info.blade.php | 17 +-
resources/views/admin/prices/list.blade.php | 291 +++----
resources/views/admin/ptypes/_form.blade.php | 77 +-
resources/views/admin/ptypes/add.blade.php | 12 +-
resources/views/admin/ptypes/edit.blade.php | 15 +-
resources/views/admin/ptypes/info.blade.php | 6 -
resources/views/admin/ptypes/list.blade.php | 271 +++----
resources/views/admin/users/add.blade.php | 395 +++++++++-
resources/views/admin/users/list.blade.php | 683 +++++++---------
.../views/admin/usertypes/_form.blade.php | 163 ++--
.../views/admin/usertypes/info.blade.php | 136 +++-
.../views/admin/usertypes/list.blade.php | 189 ++---
resources/views/layouts/app.blade.php | 6 +-
26 files changed, 2434 insertions(+), 1726 deletions(-)
diff --git a/app/Http/Controllers/Admin/ParkController.php b/app/Http/Controllers/Admin/ParkController.php
index 7a175fb..e3b2e88 100644
--- a/app/Http/Controllers/Admin/ParkController.php
+++ b/app/Http/Controllers/Admin/ParkController.php
@@ -44,10 +44,12 @@ class ParkController extends Controller
$query->orderBy('p.park_id', 'asc');
}
- $parks = $query->paginate(20);
- $cities = \DB::table('city')->orderBy('city_id')->get();
+ $parks = $query->paginate(20);
+ $cities = \DB::table('city')->orderBy('city_id')->get();
- return view('admin.parks.list', compact('parks', 'cities'));
+ $sort = $request->input('sort', 'p.park_id');
+ $sort_type = $request->input('sort_type', 'asc');
+ return view('admin.parks.list', compact('parks', 'cities', 'sort', 'sort_type'));
}
public function add(Request $request)
@@ -77,14 +79,14 @@ class ParkController extends Controller
public function edit(Request $request, $pk, $view = '')
{
- $park = Park::getByPk($pk);
+ $park = Park::find($pk);
if (empty($pk) || empty($park)) {
abort('404');
}
$data = $park->getAttributes();
$dataList = $this->getDataDropList();
$data = array_merge($data, $dataList);
- if ($request->isMethod('POST')) {
+ if ($request->isMethod('POST') || $request->isMethod('PUT')) {
// ここをaddと同じバリデーションに変更
$validated = $request->validate([
'city_id' => 'required|integer',
@@ -114,7 +116,7 @@ class ParkController extends Controller
{
$arr_pk = $request->get('pk');
if ($arr_pk) {
- if (Park::deleteByPk($arr_pk)) {
+ if (Park::destroy($arr_pk)) {
return redirect()->route('parks')->with('success', __("削除が完了しました。"));
} else {
return redirect()->route('parks')->with('error', __('削除に失敗しました。'));
@@ -153,7 +155,23 @@ class ParkController extends Controller
];
- $dataExport = Park::search($inputs);
+ $dataExport = \DB::table('park as p')
+ ->leftJoin('city as c', 'p.city_id', '=', 'c.city_id')
+ ->select([
+ 'p.park_id',
+ 'c.city_name',
+ 'p.park_name',
+ 'p.park_ruby',
+ 'p.park_syllabary',
+ 'p.park_adrs',
+ 'p.park_close_flag',
+ 'p.park_day',
+ 'p.alert_flag',
+ 'p.print_number',
+ 'p.keep_alive',
+ ])
+ ->orderBy('p.park_id', 'asc')
+ ->get();
$columns = array(
__('駐輪場ID '),// 0
__('市区ID'),// 1
@@ -177,14 +195,14 @@ class ParkController extends Controller
$file,
array(
$items->park_id,// 0
- $items->city_id,// 1
- !empty($items->getCity()) ? $items->getCity()->city_name : "",// 2
+ null, // city_id(selectで取得していないので空欄)
+ $items->city_name ?? '',// 2
$items->park_name, // 3
$items->park_ruby, // 4
$items->park_syllabary, // 5
$items->park_adrs, // 6
$items->park_close_flag,// 7
- $items->getParkCloseFlagDisplay(),// 8
+ ($items->park_close_flag == 1 ? '閉設' : '開設'),// 8
$items->park_day,// 9
$items->alert_flag,// 10
$items->print_number,// 11
diff --git a/app/Http/Controllers/Admin/PriceController.php b/app/Http/Controllers/Admin/PriceController.php
index 81f9cc1..f7a7d25 100644
--- a/app/Http/Controllers/Admin/PriceController.php
+++ b/app/Http/Controllers/Admin/PriceController.php
@@ -36,40 +36,33 @@ class PriceController extends Controller
public function add(Request $request)
{
$inputs = [
+ 'price_parkplaceid' => $request->input('price_parkplaceid'), // 駐車場所ID
+ 'park_id' => $request->input('park_id'), // 駐輪場ID
'prine_name' => $request->input('prine_name'), // 商品名
'price_month' => $request->input('price_month',''), // 期間
- 'park_id' => $request->input('park_name'), // 駐輪場
- 'psection_id' => $request->input('psection_subject'), // 車種区分
- 'price_ptypeid' => $request->input('ptype_subject'), // 駐輪分類
- 'user_categoryid' => $request->input('user_category_name'), // 利用者分類
- 'pplace_id' => $request->input('pplace_id'), // 駐車車室
+ 'user_categoryid' => $request->input('user_categoryid'), // 利用者分類ID
'price' => $request->input('price'), // 駐輪料金(税込)
+ 'psection_id' => $request->input('psection_id'), // 車種区分ID
+ 'price_ptypeid' => $request->input('price_ptypeid'), // 駐輪分類ID
+ 'pplace_id' => $request->input('pplace_id'), // 駐車車室ID
];
$dataList = $this->getDataDropList();
$inputs = array_merge($inputs, $dataList);
if ($request->isMethod('POST')) {
$type = false;
- $validation = new PriceRequest();
- $rules = $validation->rules();
- $validator = Validator::make($request->all(), $rules, $validation->messages());
- if (!$validator->fails()) {
- \DB::transaction(function () use ($inputs, &$type) {
- $new = new Price();
- $new->fill($inputs);
- if( $new->save()){
- $type = true;
- }
-
- });
- if ($type) {
- $request->session()->flash('success', __('新しい成功を創造する。'));
- return redirect()->route('prices');
- } else {
- $request->session()->flash('error', __('新しい作成に失敗しました'));
+ \DB::transaction(function () use ($inputs, &$type) {
+ $new = new Price();
+ $new->fill($inputs);
+ if( $new->save()){
+ $type = true;
}
- }else {
- $inputs['errorMsg'] = $this->__buildErrorMessasges($validator);
+ });
+ if ($type) {
+ $request->session()->flash('success', __('新しい成功を創造する。'));
+ return redirect()->route('prices');
+ } else {
+ $request->session()->flash('error', __('新しい作成に失敗しました'));
}
}
@@ -86,29 +79,28 @@ class PriceController extends Controller
$data = array_merge($data, $dataList);
if ($request->isMethod('POST')) {
$type = false;
- $validation = new PriceRequest();
- $rules = $validation->rules();
- $validator = Validator::make($request->all(), $rules, $validation->messages());
- $requestAll = $request->all();
- $requestAll['price_ptypeid]'] = $request->input('ptype_subject');
- $requestAll['user_categoryid'] = $request->input('user_category_name'); // 利用者分類
- $requestAll['psection_id'] = $request->input('psection_subject');
- $requestAll['park_id'] = $request->input('park_name');
+ $requestAll = [
+ 'price_parkplaceid' => $request->input('price_parkplaceid'),
+ 'park_id' => $request->input('park_id'),
+ 'prine_name' => $request->input('prine_name'),
+ 'price_month' => $request->input('price_month',''),
+ 'user_categoryid' => $request->input('user_categoryid'),
+ 'price' => $request->input('price'),
+ 'psection_id' => $request->input('psection_id'),
+ 'price_ptypeid' => $request->input('price_ptypeid'),
+ 'pplace_id' => $request->input('pplace_id'),
+ ];
$data = array_merge($data, $requestAll);
- if (!$validator->fails()) {
- \DB::transaction(function () use ($data, &$type,$price) {
- $price->fill($data);
- $price->save();
- $type = true;
- });
- if ($type) {
- $request->session()->flash('success', __('更新に成功しました'));
- return redirect()->route('prices');
- } else {
- $request->session()->flash('error', __('更新に失敗しました'));
- }
- }else {
- $data['errorMsg'] = $this->__buildErrorMessasges($validator);
+ \DB::transaction(function () use ($data, &$type,$price) {
+ $price->fill($data);
+ $price->save();
+ $type = true;
+ });
+ if ($type) {
+ $request->session()->flash('success', __('更新に成功しました'));
+ return redirect()->route('prices');
+ } else {
+ $request->session()->flash('error', __('更新に失敗しました'));
}
}
if ($view != '') {
diff --git a/app/Legacy/User.php b/app/Legacy/User.php
index 4db6eee..0a367c3 100644
--- a/app/Legacy/User.php
+++ b/app/Legacy/User.php
@@ -66,7 +66,6 @@ class User extends Model
'user_remarks',
'user_age',
];
-
protected static function boot()
{
parent::boot();
diff --git a/app/Models/Park.php b/app/Models/Park.php
index 7b0368e..8fa8826 100644
--- a/app/Models/Park.php
+++ b/app/Models/Park.php
@@ -2,43 +2,132 @@
namespace App\Models;
+use App\Utils;
+use App\Models\City;
use Illuminate\Database\Eloquent\Model;
+use Illuminate\Support\Facades\Auth;
-/**
- * 駐輪場モデル - parkテーブル(正式モデル)
- * 旧UsingStatusParkの責務を置き換え
- */
class Park extends Model
{
+ const CREATED_AT = 'created_at';
+ const UPDATED_AT = 'updated_at';
+
protected $table = 'park';
protected $primaryKey = 'park_id';
- public $timestamps = true;
-
- public const CREATED_AT = 'created_at';
- public const UPDATED_AT = 'updated_at';
protected $fillable = [
- 'park_name',
- 'park_ruby',
- 'park_syllabary',
- 'park_adrs',
- 'park_close_flag',
- 'park_day',
- 'alert_flag',
- 'print_number',
- 'keep_alive',
- 'city_id',
- 'operator_id',
+ 'park_id', // 駐輪場ID
+ 'city_id', // 市区
+ 'park_name', // 駐輪場名
+ 'park_ruby', // 駐輪場ふりがな
+ 'park_syllabary', // 駐輪場五十音
+ 'park_adrs', // 住所
+ 'park_close_flag', // 閉設フラグ
+ 'park_day', // 閉設日
+ 'price_memo', // 価格メモ
+ 'alert_flag', // 残警告チェックフラグ
+ 'print_number', // 印字数
+ 'keep_alive', // 最新キープアライブ
+ 'renew_start_date', // 更新期間開始日
+ 'renew_start_time', // 更新期間開始時
+ 'renew_end_date', // 更新期間終了日
+ 'renew_end_time', // 更新期間終了時
+ 'parking_start_period', // 駐輪開始期間
+ 'reminder_type', // リマインダー種別
+ 'reminder_time', // リマインダー時間
+ 'immediate_use_after_contract', // 契約後即利用許可
+ 'display_gender', // 項目表示設定:性別
+ 'display_birthday', // 項目表示設定:生年月日
+ 'display_security_registration_number', // 項目表示設定:防犯登録番号
+ 'distance_between_two_points', // 二点間距離
+ 'latitude', // 駐車場座標(緯度)
+ 'longitude', // 駐車場座標(経度)
+ 'phone_number', // 電話番号
+ 'contract_type_regular', // 駐輪場契約形態(定期)
+ 'contract_type_temporary', // 駐輪場契約形態(一時利用)
+ 'vehicle_type_limit', // 車種制限
+ 'procedure_method', // 手続方法
+ 'payment_method', // 支払方法
+ 'usage_time_limit_flag', // 利用可能時間制限フラグ
+ 'usage_time_start', // 利用可能時間(開始)
+ 'usage_time_end', // 利用可能時間(終了)
+ 'resident_manager_flag', // 常駐管理人フラグ
+ 'resident_time_start', // 常駐時間(開始)
+ 'resident_time_end', // 常駐時間(終了)
+ 'roof_flag', // 屋根フラグ
+ 'seal_issuing_machine_flag', // シール発行機フラグ
+ 'usage_method', // 駐輪場利用方法
+ 'periodic_update_period', // 定期更新期間
+ 'waiting_reservation', // 空き待ち予約
+ 'special_notes', // 特記事項
+ 'student_id_confirmation_type', // 学生証確認種別
+ 'reduction_guide_display_flag', // 減免案内表示フラグ
+ 'reduction_target_age', // 減免対象年齢
+ 'reduction_guide_display_start_month', // 減免案内表示開始月数
+ 'cross_year' // 年跨ぎ
+ // 如有 created_at/updated_at 可省略不填
];
- /**
- * 料金設定との関連付け
- * @return \Illuminate\Database\Eloquent\Relations\HasMany
- */
- public function prices()
+ public static function search($inputs)
{
- return $this->hasMany(PriceA::class, 'park_id', 'park_id');
+ $list = self::query();
+ if ($inputs['isMethodPost']) {
+ // 搜索条件可追加
+ }
+ // Sort
+ if ($inputs['sort']) {
+ $list->orderBy($inputs['sort'], $inputs['sort_type']);
+ }
+ if ($inputs['isExport']){
+ $list = $list->get();
+ }else{
+ $list = $list->paginate(Utils::item_per_page);
+ }
+ return $list;
+ }
+
+ public static function getByPk($pk)
+ {
+ return self::find($pk);
+ }
+
+ public static function deleteByPk($arr)
+ {
+ return self::whereIn('park_id', $arr)->delete();
+ }
+
+ public static function boot()
+ {
+ parent::boot();
+ self::creating(function (Park $model) {
+ $model->operator_id = Auth::user()->ope_id ?? null;
+ });
+ }
+
+ /**
+ * GET 閉設フラグ
+ */
+ public function getParkCloseFlagDisplay() {
+ if($this->park_close_flag == 1) {
+ return '閉設';
+ }
+ else if($this->park_close_flag == 0) {
+ return '開設';
+ }
+ return '';
+ }
+
+ public function getCity()
+ {
+ // city_id => city_id (City モデル要有 city_id PK)
+ return $this->belongsTo(City::class, 'city_id', 'city_id')->first();
+ }
+
+ public static function getList(){
+ return self::pluck('park_name','park_id');
+ }
+
+ public static function getIdByName($park_name){
+ return self::where('park_name',$park_name)->pluck('park_id')->first();
}
}
-
-
diff --git a/app/Models/Ptype.php b/app/Models/Ptype.php
index f8adcf2..aeb6fe6 100644
--- a/app/Models/Ptype.php
+++ b/app/Models/Ptype.php
@@ -4,12 +4,24 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
-/**
- * 車種分類モデル - ptypeテーブル(正式モデル)
- * 旧UsingStatusPtypeの責務を置き換え
- */
class Ptype extends Model
{
+
+ /**
+ * 主キー配列で一括削除
+ */
+ public static function deleteByPk($arr)
+ {
+ return self::whereIn('ptype_id', $arr)->delete();
+ }
+
+ /**
+ * 主キーで1件取得
+ */
+ public static function getByPk($pk)
+ {
+ return self::find($pk);
+ }
protected $table = 'ptype';
protected $primaryKey = 'ptype_id';
public $timestamps = true;
@@ -23,9 +35,28 @@ class Ptype extends Model
'operator_id',
];
- /**
- * 料金設定
- */
+ public static function search($inputs)
+ {
+ $list = self::query();
+ if (!empty($inputs['isMethodPost'])) {
+ // 必要に応じて検索条件を追加
+ }
+ if (!empty($inputs['sort'])) {
+ $list->orderBy($inputs['sort'], $inputs['sort_type'] ?? 'asc');
+ }
+ if (!empty($inputs['isExport'])) {
+ return $list->get();
+ } else {
+ return $list->paginate(\App\Models\Utils::item_per_page);
+ }
+ }
+
+ public static function getList()
+ {
+ return self::pluck('ptype_subject', 'ptype_id');
+ }
+
+
public function prices()
{
return $this->hasMany(PriceA::class, 'price_ptypeid', 'ptype_id');
@@ -33,3 +64,5 @@ class Ptype extends Model
}
+
+
diff --git a/public/index.php b/public/index.php
index 4e38bc6..ee8f07e 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,7 +1,5 @@
- ×
- {{ Session::get('success') }}
-
-@elseif(Session::has('error'))
-
- ×
-
{{__('誤差')}}:
- {!! Session::get('error') !!}
-
-@elseif(isset($errorMsg))
-
- ×
-
{{__('誤差')}}:
- {!! $errorMsg !!}
-
-@endif
-
-
-
- @if($isInfo || $isEdit)
-
-
-
{{__('validation.attributes.park_id')}}
+{{-- resources/views/admin/parks/_form.blade.php --}}
+{{-- 駐輪場マスタ 共通フォーム(add/edit 共用) --}}
+
+@php
+ $p = $park ?? null;
+@endphp
+
+
+
+
+
+ {{-- 駐輪場ID(編集のみ) --}}
+ @if(!empty($p?->park_id))
+
+ {{-- 駐輪場名 --}}
+
+
+ {{-- 駐輪場ふりがな / 駐輪場五十音 --}}
+
+
+
+ {{-- 住所 --}}
+
+
+ {{-- 閉設フラグ / 閉設日 --}}
+
+
+
+ {{-- 価格メモ --}}
+
+
+ {{-- 逆利用(一般) / 逆利用フラグ(学生) / 駐輪規定フラグ --}}
+
+
+
+
+ {{-- 残警告チェックフラグ / 印字数 / 最新キープアライブ --}}
+
+
+
+
+ {{-- 更新期間開始/終了(日期+時分) --}}
+
+
+
+
+
+
+ {{-- 駐輪開始期間 --}}
+
+
+ {{-- リマインダー 種別/時間 --}}
+
+
+
+ {{-- 契約後即利用許可 / 項目表示設定 --}}
+
+
+
+
+
+ {{-- 二点間距離 / 座標 / 電話番号 --}}
+
+
+
+
+
+ {{-- 契約形態(定期/一時) --}}
+
+
+
+ {{-- 申告制利用 / 手続方法 / 支払方法 --}}
+
+
+
+
+ {{-- 利用可能時間制限 / 開始 / 終了 --}}
+
+
+
+
+ {{-- 常駐管理人 / 常駐時間 --}}
+
+
+
+
+ {{-- 屋根 / シール発行機 --}}
+
+
+
+ {{-- 駐輪場利用方法 / 定期更新期間 / 空き待ち予約 / 特記事項 --}}
+
+
+
+
+
+ {{-- 学生証確認種別 / 減免案内表示 / 年齢 / 開始月数 / 年跨ぎ --}}
+
+
+
+
+
+
+ {{-- 画像アップロード(SAMPLE表示) --}}
+
+
+
+ {{-- 備考(最下段に配置) --}}
+
+
+
diff --git a/resources/views/admin/parks/add.blade.php b/resources/views/admin/parks/add.blade.php
index b97224a..fcac1bb 100644
--- a/resources/views/admin/parks/add.blade.php
+++ b/resources/views/admin/parks/add.blade.php
@@ -1,53 +1,69 @@
-
@extends('layouts.app')
-@section('title', '[東京都|〇〇駐輪場] 駐輪場マスタ')
+@section('title', '駐輪場マスタ 新規')
@section('content')
-
-
-
+
-
-
-
-
-
-
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
-
+ {{-- 画面上部のツールバー(新規は登録だけ/目标图一致) --}}
+
+ {{-- 本体フォーム(白背景のカード) --}}
+
+
+
+
+
+
@endsection
diff --git a/resources/views/admin/parks/edit.blade.php b/resources/views/admin/parks/edit.blade.php
index ea77744..4295445 100644
--- a/resources/views/admin/parks/edit.blade.php
+++ b/resources/views/admin/parks/edit.blade.php
@@ -1,53 +1,64 @@
-
@extends('layouts.app')
-@section('title', '[東京都|〇〇駐輪場] 駐輪場マスタ')
+@section('title', '駐輪場マスタ 編集')
@section('content')
-
-
-
+
-
-
-
-
-
-
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
-
+ {{-- 画面上部のツールバー(左:登録/その他、右:削除) --}}
+
+ {{-- 本体フォーム(白背景のカード) --}}
+
+
+
+
@endsection
diff --git a/resources/views/admin/parks/list.blade.php b/resources/views/admin/parks/list.blade.php
index ac65f4a..8698fdb 100644
--- a/resources/views/admin/parks/list.blade.php
+++ b/resources/views/admin/parks/list.blade.php
@@ -1,188 +1,184 @@
@extends('layouts.app')
-@section('title', '[東京都|〇〇駐輪場] 駐輪場マスタ')
+
@section('content')
-
-
-
-
-
-
-
-
-
-
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
- {{ $list->links('pagination') }}
-
-
-
-
-
+
+
+
駐輪場マスタ
+
+ ホーム
+ 駐輪場マスタ
+
-
-
+
+
+
+
+
+
+ {{ $parks->appends(request()->except('page'))->links('pagination::bootstrap-4') }}
+
+
+
+@endsection
+
+@push('scripts')
+
+@extends('layouts.app')
+
+@section('content')
+
+ {{-- ここにテーブルやフォーム --}}
+
+@endsection
+
+@push('scripts')
+
+@endpush
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/admin/prices/_form.blade.php b/resources/views/admin/prices/_form.blade.php
index 39e8a29..85e4e39 100644
--- a/resources/views/admin/prices/_form.blade.php
+++ b/resources/views/admin/prices/_form.blade.php
@@ -21,149 +21,123 @@
{{__('登録')}}
{{__('編集')}}
@else
-
{{__('保存')}}
+
{{__('登録')}}
@endIf
- @if($isEdit || $isInfo)
-
-
- {{__('validation.attributes.price_parkplaceid')}}
-
-
- @endIf
+
+
+ {{__('駐車場所ID')}}
+
+
+
+
+ {{__('駐輪場ID')}}
+
+
-
diff --git a/resources/views/admin/prices/info.blade.php b/resources/views/admin/prices/info.blade.php
index 4608884..effa91d 100644
--- a/resources/views/admin/prices/info.blade.php
+++ b/resources/views/admin/prices/info.blade.php
@@ -1,6 +1,6 @@
@extends('layouts.app')
-@section('title', '[東京都|〇〇駐輪場] 駐輪場所、料金マスタ')
+@section('title', '駐輪場所、料金マスタ')
@section('content')
@@ -8,14 +8,13 @@
-
[東京都|〇〇駐輪場] 駐輪場所、料金マスタ
+ 駐輪場所、料金マスタ
@@ -40,12 +39,6 @@
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
-
diff --git a/resources/views/admin/prices/list.blade.php b/resources/views/admin/prices/list.blade.php
index edafd14..9b3c807 100644
--- a/resources/views/admin/prices/list.blade.php
+++ b/resources/views/admin/prices/list.blade.php
@@ -1,166 +1,135 @@
-
@extends('layouts.app')
@section('title', '[東京都|〇〇駐輪場] 駐輪場所、料金マスタ')
+
@section('content')
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
- {{ $list->appends(['sort' => $sort,'sort_type'=>$sort_type])->links('pagination') }}
-
-
-
-
+{{-- ▼ コンテンツヘッダー(パンくず) --}}
+
+
-@endsection
\ No newline at end of file
+{{-- ▼ メインコンテンツ --}}
+
+
+
+ {{-- ▼ ボタン列(新規/削除/CSV出力/インポート/エクスポート) --}}
+
+ 新規
+ 削除
+ CSV出力
+ インポート
+ エクスポート
+
+
+ {{-- ▼ ページネーション(上部・右寄せ) --}}
+
+ {{ $list->appends(['sort' => $sort, 'sort_type' => $sort_type])->links('pagination') }}
+
+
+ {{-- ▼ フラッシュメッセージ --}}
+
+
+ {{-- ▼ 一覧(市区マスタ準拠:1枚テーブル/先頭が「チェック+編集」統合列) --}}
+
+
+
+
+{{-- ▼ 全選択/全解除(name="pk[]" を対象) --}}
+
+@endsection
diff --git a/resources/views/admin/ptypes/_form.blade.php b/resources/views/admin/ptypes/_form.blade.php
index 48b84bf..d45648e 100644
--- a/resources/views/admin/ptypes/_form.blade.php
+++ b/resources/views/admin/ptypes/_form.blade.php
@@ -17,59 +17,36 @@
@endif
+
-
- @if($isInfo || $isEdit)
-
-
+
diff --git a/resources/views/admin/ptypes/add.blade.php b/resources/views/admin/ptypes/add.blade.php
index ab42ab2..ba80cfe 100644
--- a/resources/views/admin/ptypes/add.blade.php
+++ b/resources/views/admin/ptypes/add.blade.php
@@ -8,14 +8,14 @@
-
[東京都|〇〇駐輪場] 駐輪分類マスタ
+ 駐輪分類マスタ
@@ -40,12 +40,6 @@
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
-
diff --git a/resources/views/admin/ptypes/edit.blade.php b/resources/views/admin/ptypes/edit.blade.php
index 0b11d23..c7ec050 100644
--- a/resources/views/admin/ptypes/edit.blade.php
+++ b/resources/views/admin/ptypes/edit.blade.php
@@ -1,4 +1,3 @@
-
@extends('layouts.app')
@section('title', '[東京都|〇〇駐輪場] 駐輪分類マスタ')
@@ -14,8 +13,8 @@
XX様info(ホーム)
[東京都|〇〇駐輪場]
- 駐輪分類マスタ
- 利用者マスタ
+ 駐輪分類マスタ
+ 編集
@@ -32,20 +31,12 @@
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
-
diff --git a/resources/views/admin/ptypes/info.blade.php b/resources/views/admin/ptypes/info.blade.php
index 700ff64..a07d3c5 100644
--- a/resources/views/admin/ptypes/info.blade.php
+++ b/resources/views/admin/ptypes/info.blade.php
@@ -41,12 +41,6 @@
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
-
-
diff --git a/resources/views/admin/ptypes/list.blade.php b/resources/views/admin/ptypes/list.blade.php
index 0d3f140..7352336 100644
--- a/resources/views/admin/ptypes/list.blade.php
+++ b/resources/views/admin/ptypes/list.blade.php
@@ -1,137 +1,144 @@
-
@extends('layouts.app')
@section('title', '[東京都|〇〇駐輪場] 駐輪分類マスタ')
+
@section('content')
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
- {{ $list->appends(['sort' => $sort,'sort_type'=>$sort_type])->links('pagination') }}
-
-
-
-
+{{-- ▼ コンテンツヘッダー(パンくず) --}}
+
+
-@endsection
\ No newline at end of file
+{{-- ▼ メインコンテンツ --}}
+
+
+ {{-- ▼ アクションボタン(市区マスタ準拠) --}}
+
+
+ {{-- ▼ フラッシュメッセージ --}}
+ @if(Session::has('success'))
+
+ ×
+ {{ Session::get('success') }}
+
+ @elseif(Session::has('error'))
+
+ ×
+
{{__('誤差')}}:
+ {!! Session::get('error') !!}
+
+ @elseif(isset($errorMsg))
+
+ ×
+
{{__('誤差')}}:
+ {!! $errorMsg !!}
+
+ @endif
+
+ {{-- ▼ 一覧(編集+チェックを統合列に変更:背景 #faebd7) --}}
+
-
-
-
+ {{-- ===================== 案内文(図2 準拠) ===================== --}}
+
+ この画面のデータ修正等の必要はありません。
+
-
-
-
-
-
-@endsection
+ {{-- ▼ 見た目調整(ラベル間隔/入力高さ) --}}
+
+
+ {{-- ▼ 解除ボタン(hidden以外をリセットして送信) --}}
+
+
+ {{-- ▼ CSV出力用の隠しフォーム(現在の絞り込み条件を同送) --}}
+
+ @csrf
+ {{-- 絞り込みのhidden(listのフォームnameと合わせる) --}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
新規
+ {{-- ▼ クリックで隠しフォーム送信 --}}
+
CSV出力
+
+
+ {{ $list->appends(request()->except('page'))->links('pagination') }}
+
+
+
+ {{-- ===================== 一覧 ===================== --}}
+
+ @csrf
+
+
+
+
+
+ 利用者ID
+ タグ/QRフラグ
+ 利用者分類ID
+ 利用者名
+ フリガナ
+ 生年月日
+ 年齢
+ 携帯電話番号
+ 自宅電話番号
+ メールアドレス
+ 本人確認書類
+ 本人確認チェック済
+ 本人確認日時
+ 退会フラグ
+ 退会日
+
+
+
+ @forelse($list as $item)
+ @php
+ // ▼ 詳細/編集リンク生成(命名ルート優先)
+ $userInfoUrl = Route::has('user_info')
+ ? route('user_info', ['seq' => $item->user_seq])
+ : (Route::has('users_info')
+ ? route('users_info', ['id' => $item->user_seq])
+ : url('/users/info/' . $item->user_seq));
+ $chk = (string) ($item->user_idcard_chk_flag ?? '0');
+ @endphp
+
+ {{-- 利用者ID(リンク) --}}
+ {{ $item->user_id }}
+ {{-- タグ/QR --}}
+ {{ $item->tag_qr_flag ? 'QR' : 'タグ' }}
+ {{-- 利用者分類ID/氏名/フリガナ --}}
+ {{ $item->user_categoryid }}
+ {{ $item->user_name }}
+ {{ $item->user_phonetic }}
+ {{-- 生年月日/年齢 --}}
+ {{ $item->user_birthdate ? \Illuminate\Support\Str::limit($item->user_birthdate, 10, '') : '' }}
+
+ {{ $item->user_age }}
+ {{-- 連絡先 --}}
+ {{ $item->user_mobile }}
+ {{ $item->user_homephone }}
+ {{ $item->user_primemail }}
+ {{-- 本人確認(書類/チェック/日時) --}}
+ {{ __($item->user_idcard) }}
+ {{ $chk === '1' ? '手動チェックOK' : '未チェック' }}
+ {{ $item->user_chk_day ? \Illuminate\Support\Str::limit($item->user_chk_day, 10, '') : '' }}
+
+ {{-- 退会 --}}
+ {{ $item->user_quit_flag ? 'はい' : 'いいえ' }}
+ {{ $item->user_quitday ? \Illuminate\Support\Str::limit($item->user_quitday, 10, '') : '' }}
+
+
+ @empty
+
+ データがありません。
+
+ @endforelse
+
+
+
+
+
+ {{-- ▼ 一覧の背景色(グレー)を完全無効化:このページだけ適用 --}}
+
+
+
{{-- /.container-fluid --}}
+
+@endsection
\ No newline at end of file
diff --git a/resources/views/admin/usertypes/_form.blade.php b/resources/views/admin/usertypes/_form.blade.php
index 6aee0ab..0dbf186 100644
--- a/resources/views/admin/usertypes/_form.blade.php
+++ b/resources/views/admin/usertypes/_form.blade.php
@@ -1,86 +1,87 @@
-@if(Session::has('success'))
-
- ×
- {{ Session::get('success') }}
-
-@elseif(Session::has('error'))
-
- ×
-
{{__('誤差')}}:
- {!! Session::get('error') !!}
-
-@elseif(isset($errorMsg))
-
- ×
-
{{__('誤差')}}:
- {!! $errorMsg !!}
-
-@endif
-
-
-
-
-
-
-
-
-
-
- @include('admin.usertypes._form',['isEdit'=>0,'isInfo'=>1])
+
+
+
+
+
+
+
+ {{__('削除')}}
+ {{__('インポート')}}
+ {{__('CSV出力')}}
+ {{ $list->appends(['sort' => $sort ?? '','sort_type'=>$sort_type ?? ''])->links('pagination') }}
+
+
+
-
-
- {{__('削除')}}
- {{__('インポート')}}
- {{__('CSV出力')}}
-
-
-
@endsection
diff --git a/resources/views/admin/usertypes/list.blade.php b/resources/views/admin/usertypes/list.blade.php
index 92794cd..2567700 100644
--- a/resources/views/admin/usertypes/list.blade.php
+++ b/resources/views/admin/usertypes/list.blade.php
@@ -6,38 +6,40 @@
-
-
+
+
+
-
-
-
-
-
-
+
+ @csrf
-
{{__('削除')}}
-
{{__('インポート')}}
-
{{__('CSV出力')}}
- {{ $list->appends(['sort' => $sort,'sort_type'=>$sort_type])->links('pagination') }}
+
+
+
+ {{ $list->appends(['sort' => $sort, 'sort_type' => $sort_type])->links('pagination') }}
+
+
@if(Session::has('success'))
@@ -59,90 +61,93 @@
@endif
-