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] =?UTF-8?q?=E7=94=BB=E9=9D=A2=E3=82=A8=E3=83=A9=E3=83=BC?= =?UTF-8?q?=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) - {{__('登録')}} - {{__('編集')}} - @else($isEdit) - - @endIf -
-
-
- @if($isInfo || $isEdit) - -
- +{{-- resources/views/admin/parks/_form.blade.php --}} +{{-- 駐輪場マスタ 共通フォーム(add/edit 共用) --}} + +@php + $p = $park ?? null; +@endphp + + + +
+ + {{-- 駐輪場ID(編集のみ) --}} + @if(!empty($p?->park_id)) +
+ +
+
-
-
- -
-
- @endIf - -
- -
-
- + + @foreach($cities as $city) + @endforeach
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
-
- @if($isInfo) - {{__('登録')}} - {{__('編集')}} - @else($isEdit) - - @endIf -
+ {{-- 駐輪場名 --}} +
+ +
+ +
+
+ + {{-- 駐輪場ふりがな / 駐輪場五十音 --}} +
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 住所 --}} +
+ +
+ +
+
+ + {{-- 閉設フラグ / 閉設日 --}} +
+ +
+ @foreach([0=>'開設',1=>'閉設',2=>'準備中'] as $v=>$label) +
+ park_close_flag ?? 0)==$v)> + +
+ @endforeach +
+
+
+ +
+ +
+
+ + {{-- 価格メモ --}} +
+ +
+ +
+
+ + {{-- 逆利用(一般) / 逆利用フラグ(学生) / 駐輪規定フラグ --}} +
+ +
+ @foreach([1=>'逆利用OK',0=>'逆利用NG'] as $v=>$label) +
+ reverse_use_general ?? 1)==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([1=>'逆利用OK',0=>'逆利用NG'] as $v=>$label) +
+ reverse_use_student ?? 1)==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([1=>'使用する',0=>'使用しない'] as $v=>$label) +
+ parking_rule_flag ?? 1)==$v)> + +
+ @endforeach +
+
+ + {{-- 残警告チェックフラグ / 印字数 / 最新キープアライブ --}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 更新期間開始/終了(日期+時分) --}} +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+ +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+ + {{-- 駐輪開始期間 --}} +
+ +
+ + +
+
+ + {{-- リマインダー 種別/時間 --}} +
+ +
+ @foreach(['daily'=>'毎日','alt'=>'一日おき','two'=>'二日おき'] as $v=>$label) +
+ reminder_type ?? 'daily')==$v)> + +
+ @endforeach +
+
+
+ +
+ + +
+
+ + {{-- 契約後即利用許可 / 項目表示設定 --}} +
+ +
+ @foreach([1=>'許可する',0=>'許可しない'] as $v=>$label) +
+ allow_use_after_contract ?? 1)==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([0=>'表示しない',1=>'表示する'] as $v=>$label) +
+ disp_gender ?? 0)==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([0=>'表示しない',1=>'表示する'] as $v=>$label) +
+ disp_birth ?? 0)==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([0=>'表示しない',1=>'表示する'] as $v=>$label) +
+ disp_crime ?? 0)==$v)> + +
+ @endforeach +
+
+ + {{-- 二点間距離 / 座標 / 電話番号 --}} +
+ +
+ + m +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 契約形態(定期/一時) --}} +
+ +
+ @foreach([1=>'定期利用可',0=>'定期利用不可'] as $v=>$label) +
+ contract_regular ?? 1)==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([1=>'一時利用可',0=>'一時利用不可'] as $v=>$label) +
+ contract_onetime ?? 1)==$v)> + +
+ @endforeach +
+
+ + {{-- 申告制利用 / 手続方法 / 支払方法 --}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 利用可能時間制限 / 開始 / 終了 --}} +
+ +
+ @foreach(['limit'=>'制限あり','free'=>'制限なし(24時間)'] as $v=>$label) +
+ use_time_limit_flag ?? 'limit')==$v)> + +
+ @endforeach +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+ + {{-- 常駐管理人 / 常駐時間 --}} +
+ +
+ @foreach([1=>'常駐',0=>'非常駐'] as $v=>$label) +
+ resident_manager_flag ?? 1)==$v)> + +
+ @endforeach +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+ + {{-- 屋根 / シール発行機 --}} +
+ +
+ @foreach([1=>'屋根あり',0=>'屋根なし'] as $v=>$label) +
+ roof_flag ?? 1)==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([1=>'シール発行機あり',0=>'シール発行機なし'] as $v=>$label) +
+ seal_machine_flag ?? 1)==$v)> + +
+ @endforeach +
+
+ + {{-- 駐輪場利用方法 / 定期更新期間 / 空き待ち予約 / 特記事項 --}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 学生証確認種別 / 減免案内表示 / 年齢 / 開始月数 / 年跨ぎ --}} +
+ +
+ @foreach(['none'=>'確認しない','year'=>'年1回','reissue'=>'再発行時'] as $v=>$label) +
+ student_card_check ?? 'none')==$v)> + +
+ @endforeach +
+
+
+ +
+ @foreach([0=>'表示しない',1=>'表示する'] as $v=>$label) +
+ reduction_notice_flag ?? 0)==$v)> + +
+ @endforeach +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ @foreach([0=>'なし',1=>'有り'] as $v=>$label) +
+ cross_year_flag ?? 0)==$v)> + +
+ @endforeach +
+
+ + {{-- 画像アップロード(SAMPLE表示) --}} +
+ +
+ + SAMPLE +
+
+
+ +
+ + 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') - -
-
-
-
-

[東京都|〇〇駐輪場] 駐輪場マスタ

-
-
- -
-
-
-
- +
- -
-
- - -
-
-
-
- - - - @include('admin.parks._form',['isEdit'=>0,'isInfo'=>0]) -
-
-
-
- -
- - - -
+ {{-- 画面上部のツールバー(新規は登録だけ/目标图一致) --}} +
+
+
-
- +
+
+ {{-- 本体フォーム(白背景のカード) --}} +
+ @csrf + @include('admin.parks._form') + + +
+
+ + + + @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') - -
-
-
-
-

[東京都|〇〇駐輪場] 駐輪場マスタ

-
-
- -
-
-
-
- +
- -
-
- - -
-
-
-
- - - - @include('admin.parks._form',['isEdit'=>1,'isInfo'=>0]) -
-
-
-
- -
- - - -
+ {{-- 画面上部のツールバー(左:登録/その他、右:削除) --}} +
- +
+
+ @csrf + +
+
+
+ {{-- 本体フォーム(白背景のカード) --}} +
+ @csrf + @method('PUT') + @include('admin.parks._form') + + +
+
+ + @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') -
-
-
-
-

{{__('駐輪場マスタ')}}

-
-
- -
-
-
-
- - - -
-
- -
-
- - - -
- - -
- - - - {{ $list->links('pagination') }} -
-
- @if(Session::has('success')) - - @elseif(Session::has('error')) -
- -

{{__('誤差')}}:

- {!! Session::get('error') !!} -
- @elseif(isset($errorMsg)) -
- -

{{__('誤差')}}:

- {!! $errorMsg !!} -
- @endif -
-
-
-
- - - - - - - - - @foreach($list as $item) - - - - - @endforeach - -
- -
- -
- {{--詳細--}} - {{__('編集')}} -
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - @foreach($list as $item) - - - - - - - - - - - - - - - - - - - - - - - - - @endforeach - -
{{__('validation.attributes.park_id')}} - {{__('validation.attributes.city_id')}} - {{__('validation.attributes.park_name')}} - {{__('validation.attributes.park_ruby')}} - - {{__('validation.attributes.park_syllabary')}} - {{__('validation.attributes.park_adrs')}} - - {{__('validation.attributes.park_close_flag')}} - {{__('validation.attributes.park_day')}} - {{__('validation.attributes.alert_flag')}} - {{__('validation.attributes.print_number')}} - {{__('validation.attributes.keep_alive')}} -
{{mb_substr($item->park_id, 0, 20)}} - - {{mb_substr(!empty($item->getCity())? $item->getCity()->city_name:"", 0, 20)}} - - {{mb_substr($item->park_name, 0, 20)}} - {{mb_substr($item->park_ruby, 0, 20)}} - {{mb_substr($item->park_syllabary, 0, 1)}} - {{mb_substr($item->park_adrs, 0, 60)}}{{$item->getParkCloseFlagDisplay()}} - - {{mb_substr($item->park_day, 0, 10)}} - {{mb_substr($item->alert_flag, 0, 6)}} - {{mb_substr($item->print_number, 0, 6)}} - {{mb_substr($item->keep_alive, 0, 6)}}
-
-
-
- -
+
+
+

駐輪場マスタ

+
-
- +
+
+
+
+
+ + -@endsection \ No newline at end of file +
+
+ + +
+
+ +
+
+ + 解除 +
+
+
+ +
+
+ 新規 + CSV出力 +
+
+ +
+
+
+
+ @csrf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($parks as $park) + + + + + + + + + + + + + + + @endforeach + +
駐輪場ID市区駐輪場名駐輪場ふりがな駐輪場五十音住所閉設フラグ閉設日価格メモ残警告チェックフラグ印字数最新キープアライブ更新期間開始日更新期間開始時更新期間終了日更新期間終了時駐輪開始期間リマインダー種別リマインダー時間契約後即利用許可項目表示設定:性別項目表示設定:生年月日項目表示設定:防犯登録番号二点間距離駐車場座標(緯度)駐車場座標(経度)電話番号駐輪場契約形態(定期)駐輪場契約形態(一時利用)車種制限手続方法支払方法利用可能時間制限フラグ利用可能時間(開始)利用可能時間(終了)常駐管理人フラグ常駐時間(開始)常駐時間(終了)屋根フラグシール発行機フラグ駐輪場利用方法定期更新期間空き待ち予約特記事項学生証確認種別減免案内表示フラグ減免対象年齢減免案内表示開始月数年跨ぎ
+ + 編集 + {{ $park->park_id }}{{ $park->city_name }}{{ $park->park_name }}{{ $park->park_ruby }}{{ $park->park_syllabary }}{{ $park->park_adrs }} + + @if($park->park_close_flag == 1) + 閉設 + @else + 営業中 + @endif + + {{ $park->park_day }}{{ $park->alert_flag }}{{ $park->print_number }}{{ $park->keep_alive }}
+
+
+ {{ $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) - -
- -
-
-
- -
-
- @endIf + +
+ +
+
+
+ +
+
+ +
+ +
+
+
+ +
+
-
- +
+ +
+
+
+
-
-
- -
+
+ +
+ +
+
+
+
- - - -
- +
+ +
+ +
+
+
+
- -
-
- -
+
+ +
+ +
+
+
+
- - - -
- +
+ +
+ +
+
+
+
-
-
- -
+
+ +
+ +
+
+
+
- - - -
- +
+ +
+ +
+
+
+
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
- - - - -
- -
-
-
- -
-
- - -
- -
-
-
- -
-
- +
@if($isInfo) {{__('登録')}} {{__('編集')}} @else - + @endIf
diff --git a/resources/views/admin/prices/add.blade.php b/resources/views/admin/prices/add.blade.php index 55a4d01..c78673a 100644 --- a/resources/views/admin/prices/add.blade.php +++ b/resources/views/admin/prices/add.blade.php @@ -1,6 +1,6 @@ @extends('layouts.app') -@section('title', '[東京都|〇〇駐輪場] 駐輪場所、料金マスタ') +@section('title', '駐輪場所、料金マスタ') @section('content') @@ -8,13 +8,13 @@
-

[東京都|〇〇駐輪場] 駐輪場所、料金マスタ

+

駐輪場所、料金マスタ

@@ -39,12 +39,6 @@
- -
- - - -
diff --git a/resources/views/admin/prices/edit.blade.php b/resources/views/admin/prices/edit.blade.php index 11e38ca..ee35a4b 100644 --- a/resources/views/admin/prices/edit.blade.php +++ b/resources/views/admin/prices/edit.blade.php @@ -3,26 +3,6 @@ @section('title', '[東京都|〇〇駐輪場] 駐輪場所、料金マスタ') @section('content') - -
-
-
-
-

[東京都|〇〇駐輪場] 駐輪場所、料金マスタ

-
-
- -
-
-
-
- -
@@ -41,11 +21,6 @@
-
- - - -
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 @@
- -
- - - -
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') -
-
-
-
-

{{__('駐輪場所、料金マスタ')}}

-
-
- -
-
-
-
- - - -
-
- - - -
-
- - - -
- -
- - - - {{ $list->appends(['sort' => $sort,'sort_type'=>$sort_type])->links('pagination') }} -
-
- @if(Session::has('success')) - - @elseif(Session::has('error')) -
- -

{{__('誤差')}}:

- {!! Session::get('error') !!} -
- @elseif(isset($errorMsg)) -
- -

{{__('誤差')}}:

- {!! $errorMsg !!} -
- @endif -
-
-
-
- - - - - - - - - @foreach($list as $item) - - - - - @endforeach - -
- -
- -
- {{--詳細--}} - {{__('編集')}} -
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - @foreach($list as $item) - - - - - - - - - - - - - - - - - - - - - @endforeach - -
{{__('validation.attributes.price_parkplaceid')}} - {{__('validation.attributes.prine_name')}}{{__('validation.attributes.price_month')}}{{__('validation.attributes.park_name')}} - {{__('validation.attributes.psection_subject')}} - {{__('validation.attributes.ptype_subject')}} - {{__('validation.attributes.user_category_name')}}{{__('validation.attributes.pplace_id')}} - {{__('validation.attributes.price')}}
{{mb_substr($item->price_parkplaceid, 0, 10)}}{{mb_substr($item->prine_name, 0, 10)}}{{mb_substr(__(\App\Price::PRICE_MONTH[$item->price_month]), 0, 10)}}{{mb_substr(!empty($item->getPark())? $item->getPark()->park_name:'' , 0, 10)}}{{mb_substr(!empty($item->getPSection())? $item->getPSection()->psection_subject:'' , 0, 10)}}{{mb_substr(!empty($item->getPType())? $item->getPType()->ptype_subject:'' , 0, 10)}}{{mb_substr(!empty($item->getUserType())? $item->getUserType()->print_name:'' , 0, 10)}}{{mb_substr($item->pplace_id, 0, 10)}}{{mb_substr($item->price, 0, 10)}}
-
-
-
- +{{-- ▼ コンテンツヘッダー(パンくず) --}} +
+
+
+
+

{{__('駐輪場所、料金マスタ')}}

- -
-
- +
+ +
+ + + -@endsection \ No newline at end of file +{{-- ▼ メインコンテンツ --}} +
+
+ + {{-- ▼ ボタン列(新規/削除/CSV出力/インポート/エクスポート) --}} +
+ + + + + +
+ + {{-- ▼ ページネーション(上部・右寄せ) --}} +
+ {{ $list->appends(['sort' => $sort, 'sort_type' => $sort_type])->links('pagination') }} +
+ + {{-- ▼ フラッシュメッセージ --}} +
+ @if(Session::has('success')) + + @elseif(Session::has('error')) +
+ +

{{__('誤差')}}:

+ {!! Session::get('error') !!} +
+ @elseif(isset($errorMsg)) +
+ +

{{__('誤差')}}:

+ {!! $errorMsg !!} +
+ @endif +
+ + {{-- ▼ 一覧(市区マスタ準拠:1枚テーブル/先頭が「チェック+編集」統合列) --}} +
+ @csrf +
+ + + + {{-- 統合列:全選択チェック + 編集(背景 #faebd7) --}} + + {{-- データ列(見出しはそのまま) --}} + + + + + + + + + + + + + @foreach($list as $item) + + {{-- ▼ 統合セル:チェック + 編集(pk[]/背景 #faebd7/間隔は ml-2) --}} + + + {{-- ▼ データ本体(既存表示そのまま) --}} + + + + + + + + + + + @endforeach + +
+ + + 駐車場所ID駐輪場ID商品名期間利用者分類ID駐輪料金(税込)車種区分ID駐輪分類ID駐車車室ID
+ + {{__('編集')}} + {{ mb_substr($item->price_parkplaceid, 0, 10) }}{{ mb_substr($item->park_id, 0, 10) }}{{ mb_substr($item->prine_name, 0, 10) }}{{ mb_substr($item->price_month, 0, 10) }}{{ mb_substr($item->user_categoryid, 0, 10) }}{{ mb_substr($item->price, 0, 10) }}{{ mb_substr($item->psection_id, 0, 10) }}{{ mb_substr($item->price_ptypeid, 0, 10) }}{{ mb_substr($item->pplace_id, 0, 10) }}
+
+ + {{-- ▼ ページネーション(下部・右寄せ:必要に応じて表示) --}} +
+ {{ $list->appends(['sort' => $sort, 'sort_type' => $sort_type])->links('pagination') }} +
+
+
+
+ +{{-- ▼ 全選択/全解除(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) - {{__('登録')}} - {{__('編集')}} - @else - - @endIf +
+
-
- @if($isInfo || $isEdit) - -
- +
+ +
+ ptype_id)) readonly @endif> +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
-
-
- -
-
- @endIf - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
-
- @if($isInfo) - {{__('登録')}} - {{__('編集')}} - @else - - @endIf
+
+ +
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 @@
- -
- - - -
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 @@ @@ -32,20 +31,12 @@
- - - + @csrf @include('admin.ptypes._form',['isEdit'=>1,'isInfo'=>0])
- -
- - - -
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 @@ -
- - - -
- 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') -
-
-
-
-

{{__('駐輪分類マスタ')}}

-
-
- -
-
-
-
- - - -
-
- - - -
-
- - - -
- -
- - - - {{ $list->appends(['sort' => $sort,'sort_type'=>$sort_type])->links('pagination') }} -
-
- @if(Session::has('success')) - - @elseif(Session::has('error')) -
- -

{{__('誤差')}}:

- {!! Session::get('error') !!} -
- @elseif(isset($errorMsg)) -
- -

{{__('誤差')}}:

- {!! $errorMsg !!} -
- @endif -
-
-
-
- - - - - - - - - @foreach($list as $item) - - - - - @endforeach - -
- -
- -
- {{--詳細--}} - {{__('編集')}} -
-
-
-
-
-
- - - - - - - - - - - - - - @foreach($list as $item) - - - - - - - - - - @endforeach - -
{{__('validation.attributes.ptype_id')}} - {{__('validation.attributes.ptype_subject')}} - {{__('validation.attributes.ptype_remarks')}} -
{{mb_substr($item->ptype_id, 0, 10)}}{{mb_substr($item->ptype_subject, 0, 10)}}{{mb_substr($item->ptype_remarks, 0, 20)}}
-
-
-
- +{{-- ▼ コンテンツヘッダー(パンくず) --}} +
+
+
+
+

{{__('駐輪分類マスタ')}}

- -
-
- +
+ +
+ + + -@endsection \ No newline at end of file +{{-- ▼ メインコンテンツ --}} +
+ + {{-- ▼ アクションボタン(市区マスタ準拠) --}} +
+ 新規 + +
+ + {{-- ▼ フラッシュメッセージ --}} + @if(Session::has('success')) + + @elseif(Session::has('error')) +
+ +

{{__('誤差')}}:

+ {!! Session::get('error') !!} +
+ @elseif(isset($errorMsg)) +
+ +

{{__('誤差')}}:

+ {!! $errorMsg !!} +
+ @endif + + {{-- ▼ 一覧(編集+チェックを統合列に変更:背景 #faebd7) --}} +
+ @csrf +
+ + + + {{-- ▼ 統合列:全選択 + 編集(市区マスタ準拠) --}} + + {{-- ▼ ソート可能ヘッダー(ID / 名称 / 階数ソート順 / 備考) --}} + + + + + + + + @foreach($list as $item) + + {{-- ▼ 統合セル:チェック + 編集 --}} + + {{-- ▼ データ列 --}} + + + + + + @endforeach + +
+ + + + + 駐輪分類ID + @if($sort == 'ptype_id') + @if($sort_type == 'asc') + + @else + + @endif + @endif + + + + 駐輪分類名 + @if($sort == 'ptype_subject') + @if($sort_type == 'asc') + + @else + + @endif + @endif + + + + 階数ソート順 + @if($sort == 'ptype_sort') + @if($sort_type == 'asc') + + @else + + @endif + @endif + + + + 備考 + @if($sort == 'ptype_remarks') + @if($sort_type == 'asc') + + @else + + @endif + @endif + +
+ + 編集 + {{ $item->ptype_id }}{{ $item->ptype_subject }}{{ $item->ptype_sort }}{{ $item->ptype_remarks }}
+ {{-- ▼ ページネーションをテーブルの外、左下に表示(Bootstrap4スタイル&パラメータ維持) --}} +
+ {{ $list->appends(request()->except('page'))->links('pagination::bootstrap-4') }} +
+ +
+@endsection diff --git a/resources/views/admin/users/add.blade.php b/resources/views/admin/users/add.blade.php index 600c54b..7ec7c66 100644 --- a/resources/views/admin/users/add.blade.php +++ b/resources/views/admin/users/add.blade.php @@ -1,50 +1,367 @@ @extends('layouts.app') +@section('title', '利用者マスタ|新規') + @section('content') - -
-
-
-
-

[画面メニュー名]XXXXXX編集画面

-
- -
-
+ {{-- ▼ パンくず --}} +
+
+
+

新規

+
+ +
+
- +
- -
-
- +
+
+ {{-- ▼ 成功/エラー表示 --}} + @if ($errors->any()) +
+
    + @foreach ($errors->all() as $e) +
  • {{ $e }}
  • + @endforeach +
+
+ @endif -
+
+ @csrf -
-
-
- - - - - @include('admin.users._form',['isEdit'=>0,'isInfo'=>0]) - -
-
-
+
+
+

基本情報

+
+
+ {{-- ▼ 1列レイアウト(ラベル左 / 入力右) --}} +
+ +
+ +
- -
-
- + +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{-- タグ/QR & シリアル --}} +
+ +
+
+ + +
+
+ + +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{-- AID / 設置場所QR --}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{-- 利用者属性 --}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + + +
+
+ +
+ +
+ +
+ +
+ +
+
+ + {{-- 連絡先 --}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{-- 現住所 --}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 連絡先住所 --}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- その他属性 --}} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 本人確認 --}} +
+ +
+ +
+
+ +
+ +
+ {{-- 0/1のみのDBの場合は 0=未チェック / 1=手動チェックOK で保存 --}} + + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{-- タグ発行 / 発行可否 / 退会 --}} +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ +
+
+ + {{-- 本人確認写真(ダミー:実装は後日) --}} +
+ +
+ +
+
+
+ +
+ +
+
+ + {{-- 備考 --}} +
+ +
+ +
+
+ +
+ +
+ + + + + + + {{-- 見た目の微調整(間隔を広げる) --}} + @endsection diff --git a/resources/views/admin/users/list.blade.php b/resources/views/admin/users/list.blade.php index 9751729..dfdf3c8 100644 --- a/resources/views/admin/users/list.blade.php +++ b/resources/views/admin/users/list.blade.php @@ -1,431 +1,302 @@ @extends('layouts.app') + @section('title', '[東京都|〇〇駐輪場]利用者マスタ') + @section('content') + {{-- ▼ コンテンツヘッダー(パンくず) --}}
-

{{__('利用者マスタ')}}

-
+

利用者マスタ

+
-
-
-
+ + + - -
- + {{-- ===================== 案内文(図2 準拠) ===================== --}} +

+ この画面のデータ修正等の必要はありません。 +

-
-
-
-
-

{{__('絞り込み')}}

-
-
-
- - - -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
+ {{-- ===================== 絞り込みフィルター ===================== --}} +
+
+

絞り込みフィルター

+
+
+ + @csrf + {{-- ▼ ソート保持 --}} + + + + {{-- ▼ 1段目(左右2カラム) --}} +
+ {{-- 左カラム --}} +
+
+ +
- - -
-
-
-
- - - - {{ $list->appends(['sort' => $sort,'sort_type'=>$sort_type])->links('pagination') }} -
-
- @if(Session::has('success')) - - @elseif(Session::has('error')) -
- -

{{__('誤差')}}:

- {!! Session::get('error') !!} -
- @elseif(isset($errorMsg)) -
- -

{{__('誤差')}}:

- {!! $errorMsg !!} -
- @endif -
-
-
-
- - - - - - - - - @foreach($list as $item) - - +
+ + +
- - @endforeach - -
- -
- -
- {{--詳細--}} - {{__('編集')}} -
-
-
-
-
-
- - - - - +
+ + +
- - - - - - - - - - - {{----}} - - - - {{----}} - - - - - - - - - - - - - - - - - - - - {{----}} - - - - - - - - - - {{----}} - {{----}} - {{----}} - - - - @foreach($list as $item) - - - - - - - - - - - - - - {{----}} - - - - {{----}} - - - - - - - - - - - - - - - - - - - - {{----}} - - - - {{--TODO user_chk_opeid get name ope_name--}} - - - - - - - {{----}} - {{----}} - {{----}} - - @endforeach - -
{{__('validation.attributes.user_seq')}} - {{__('validation.attributes.user_id')}}{{__('validation.attributes.member_id')}} - {{__('validation.attributes.user_pass')}}{{__('validation.attributes.user_manual_regist_flag')}}{{__('validation.attributes.user_mailing_flag')}} - {{__('validation.attributes.contract_number')}} - {{__('validation.attributes.user_tag_serial')}} - {{__('validation.attributes.user_tag_serial_64')}}{{__('validation.attributes.qr_code')}} - {{__('validation.attributes.tag_qr_flag')}} - {{__('validation.attributes.user_aid')}} - --}} - {{--{{__('validation.attributes.user_park_number')}} - {{__('validation.attributes.user_place_qrid')}} - {{__('validation.attributes.user_categoryid')}} - {{__('validation.attributes.user_name')}}--}} - {{--{{__('validation.attributes.user_phonetic')}} - {{__('validation.attributes.user_gender')}} - - {{__('validation.attributes.user_birthdate')}} - {{__('validation.attributes.user_age')}} - {{__('validation.attributes.user_mobile')}} - - {{__('validation.attributes.user_homephone')}} - {{__('validation.attributes.user_primemail')}} - {{__('validation.attributes.user_submail')}} - {{__('validation.attributes.user_regident_zip')}} - {{__('validation.attributes.user_regident_pre')}} - {{__('validation.attributes.user_regident_city')}} - {{__('validation.attributes.user_regident_add')}} - {{__('validation.attributes.user_relate_zip')}} - {{__('validation.attributes.user_relate_pre')}} - {{__('validation.attributes.user_relate_city')}} - {{__('validation.attributes.user_relate_add')}} - {{__('validation.attributes.ward_residents')}} - {{__('validation.attributes.user_workplace')}} - {{__('validation.attributes.user_school')}} - - {{__('validation.attributes.user_graduate')}}--}} - {{--{{__('validation.attributes.user_reduction')}} - {{__('validation.attributes.user_idcard')}} - - {{__('validation.attributes.user_idcard_chk_flag')}} - {{__('validation.attributes.user_chk_day')}} - {{__('validation.attributes.user_chk_opeid')}} - {{__('validation.attributes.user_tag_issue')}} - {{__('validation.attributes.issue_permission')}} - {{__('validation.attributes.user_quit_flag')}} - {{__('validation.attributes.user_quitday')}} - {{__('validation.attributes.user_remarks')}}--}} - {{--{{__('validation.attributes.created_at')}}--}} - {{----}} - {{--{{__('validation.attributes.updated_at')}}--}} - {{----}} - {{--{{__('validation.attributes.edit_oprator_id')}}--}} - {{--
{{mb_substr($item->user_seq, 0, 10)}} - {{mb_substr($item->user_id, 0, 10)}} - - {{mb_substr($item->member_id, 0, 10)}} - {{mb_substr($item->user_pass, 0, 10)}} - {{$item->user_manual_regist_flag?__("はい"):__("いいえ")}} - {{$item->user_mailing_flag?__("はい"):__("いいえ")}} - {{mb_substr($item->contract_number, 0, 10)}} - {{mb_substr($item->user_tag_serial, 0, 10)}} - {{mb_substr($item->user_tag_serial_64, 0, 10)}}{{mb_substr($item->qr_code, 0, 10)}} - - {{mb_substr($item->tag_qr_flag?__('QRコード'):__('タグ'), 0, 10)}} - {{mb_substr($item->user_aid, 0, 10)}} - --}} - {{--{{mb_substr($item->user_park_number, 0, 10)}} - {{mb_substr($item->user_place_qrid, 0, 10)}} - {{mb_substr($item->user_categoryid, 0, 10)}} - {{--{{mb_substr($item->getUserType()->print_name, 0, 10)}}--}} - - {{mb_substr($item->user_name, 0, 10)}}--}} - {{--{{mb_substr($item->user_phonetic, 0, 10)}} - {{mb_substr($item->user_gender, 0, 10)}} - @if($item->user_birthdate) - - {{mb_substr($item->user_birthdate, 0, 10)}} - - @endif - - {{mb_substr($item->user_age, 0, 10)}} - {{mb_substr($item->user_mobile, 0, 10)}} - {{mb_substr($item->user_homephone, 0, 10)}} - {{mb_substr($item->user_primemail, 0, 10)}} - {{mb_substr($item->user_submail, 0, 10)}} - {{mb_substr($item->user_regident_zip, 0, 10)}} - {{mb_substr($item->user_regident_pre, 0, 10)}} - {{mb_substr($item->user_regident_city, 0, 10)}} - {{mb_substr($item->user_regident_add, 0, 10)}} - {{mb_substr($item->user_relate_zip, 0, 10)}} - {{mb_substr($item->user_relate_pre, 0, 10)}} - {{mb_substr($item->user_relate_city, 0, 10)}} - {{mb_substr($item->user_relate_add, 0, 10)}} - {{mb_substr($item->ward_residents, 0, 10)}} - {{mb_substr($item->user_workplace, 0, 10)}} - {{mb_substr($item->user_school, 0, 10)}} - {{mb_substr($item->user_graduate, 0, 10)}}--}} - {{--{{mb_substr($item->user_reduction, 0, 10)}} - {{mb_substr(__($item->user_idcard), 0, 10)}}{{mb_substr(__(\App\User::USER_ID_CARD_CHK_FLG[$item->user_idcard_chk_flag]), 0, 10)}} - - @if($item->user_chk_day) - - {{mb_substr($item->user_chk_day, 0, 10)}} - - @endif - - {{mb_substr($item->user_chk_opeid, 0, 10)}} - {{mb_substr($item->user_tag_issue, 0, 10)}} - {{mb_substr($item->issue_permission, 0, 10)}} - {{$item->user_quit_flag?__("はい"):__("いいえ")}} - @if($item->user_quitday) - - {{mb_substr($item->user_quitday, 0, 10)}} - - @endif - - {{mb_substr($item->user_remarks, 0, 10)}}--}} - {{--@if($item->created_at)--}} - {{----}} - {{--{{$item->created_at}}--}} - {{--@endif--}} - {{----}} - {{--@if($item->updated_at)--}} - {{----}} - {{--{{$item->updated_at}}--}} - {{--@endif--}} - {{--{{$item->edit_oprator_id}}
+
+ + +
+
+ + {{-- 右カラム --}} +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
-
-
+ {{-- ▼ 2段目:退会日 From〜To --}} +
+
+
+ +
+ + + +
+
+
+
+ + {{-- ▼ 実行/解除 --}} +
+ + +
+ +
- -
-
- -@endsection + {{-- ▼ 見た目調整(ラベル間隔/入力高さ) --}} + + + {{-- ▼ 解除ボタン(hidden以外をリセットして送信) --}} + + + {{-- ▼ CSV出力用の隠しフォーム(現在の絞り込み条件を同送) --}} +
+ @csrf + {{-- 絞り込みのhidden(listのフォームnameと合わせる) --}} + + + + + + + + + + +
+ +
+
+ 新規 + {{-- ▼ クリックで隠しフォーム送信 --}} + +
+
+ {{ $list->appends(request()->except('page'))->links('pagination') }} +
+
+ + {{-- ===================== 一覧 ===================== --}} +
+ @csrf + +
+ + + + + + + + + + + + + + + + + + + + + + @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(リンク) --}} + + {{-- タグ/QR --}} + + {{-- 利用者分類ID/氏名/フリガナ --}} + + + + {{-- 生年月日/年齢 --}} + + + {{-- 連絡先 --}} + + + + {{-- 本人確認(書類/チェック/日時) --}} + + + + {{-- 退会 --}} + + + + @empty + + + + @endforelse + +
利用者IDタグ/QRフラグ利用者分類ID利用者名フリガナ生年月日年齢携帯電話番号自宅電話番号メールアドレス本人確認書類本人確認チェック済本人確認日時退会フラグ退会日
{{ $item->user_id }}{{ $item->tag_qr_flag ? 'QR' : 'タグ' }}{{ $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, '') : '' }} +
データがありません。
+
+
+ + {{-- ▼ 一覧の背景色(グレー)を完全無効化:このページだけ適用 --}} + + + {{-- /.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')) - -@elseif(Session::has('error')) -
- -

{{__('誤差')}}:

- {!! Session::get('error') !!} -
-@elseif(isset($errorMsg)) -
- -

{{__('誤差')}}:

- {!! $errorMsg !!} -
-@endif -
- @if($isInfo) - {{__('登録')}} - {{__('編集')}} - @else - - @endIf +
+ @if(Session::has('success')) + + @elseif(Session::has('error')) +
+ +

{{__('誤差')}}:

+ {!! Session::get('error') !!} +
+ @elseif(isset($errorMsg)) +
+ +

{{__('誤差')}}:

+ {!! $errorMsg !!} +
+ @endif
-
-
- @if($isInfo || $isEdit) - -
- +
+
+
+ @if($isInfo) + {{__('登録')}} + {{__('編集')}} + @else + + @endif +
+
+
+
+
+ @csrf + + + @if($isInfo || $isEdit) + + + + + @endif + + + + + + + + + + + + + +
{{__('validation.attributes.user_categoryid')}} + +
{{__('validation.attributes.print_name')}} + +
{{__('validation.attributes.usertype_money')}} + +
{{__('validation.attributes.usertype_remarks')}} + +
+
+ @if($isInfo) + {{__('登録')}} + {{__('編集')}} + @else + + @endif +
+
-
-
- -
-
- @endif -
- -
-
-
- -
-
- - -
- -
-
-
- -
-
- - - -
- -
-
-
- -
-
-
- @if($isInfo) - {{__('登録')}} - {{__('編集')}} - @else - - @endIf
diff --git a/resources/views/admin/usertypes/info.blade.php b/resources/views/admin/usertypes/info.blade.php index 6424dd0..0381004 100644 --- a/resources/views/admin/usertypes/info.blade.php +++ b/resources/views/admin/usertypes/info.blade.php @@ -1,53 +1,129 @@ - @extends('layouts.app') @section('title', '[東京都|〇〇駐輪場] 利用者分類マスタ') - @section('content') -
-

[東京都|〇〇駐輪場] 利用者分類マスタ

-
+

{{__('利用者分類マスタ')}}

+
-
-
-
+
+
+
-
- -
-
-
-
- - - - @include('admin.usertypes._form',['isEdit'=>0,'isInfo'=>1]) + + + + +
+ +
+ + + + {{ $list->appends(['sort' => $sort ?? '','sort_type'=>$sort_type ?? ''])->links('pagination') }} +
+
+ @if(Session::has('success')) + + @elseif(Session::has('error')) +
+ +

{{__('誤差')}}:

+ {!! Session::get('error') !!} +
+ @elseif(isset($errorMsg)) +
+ +

{{__('誤差')}}:

+ {!! $errorMsg !!} +
+ @endif +
+
+
+
+ + + + + + + + + @foreach($list as $item) + + + + @endforeach + +
+ +
+ +
+ {{--詳細--}} + {{__('編集')}} +
+
+
+
+ + + + + + + + + + + @foreach($list as $item) + + + + + + + @endforeach + +
+ {{__('validation.attributes.user_categoryid')}} + {{__('validation.attributes.print_name')}} + + {{__('validation.attributes.usertype_money')}} + + {{__('validation.attributes.usertype_remarks')}} +
+ {{mb_substr($item->user_categoryid, 0, 10)}} + {{mb_substr($item->print_name, 0, 10)}} + {{mb_substr($item->usertype_money, 0, 10)}} + {{mb_substr($item->usertype_remarks, 0, 20)}}
+
+
- -
- - - -
- - @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
- - - - {{ $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
-
-
-
- - - - - - - - - @foreach($list as $item) - - - - - @endforeach - -
- -
- -
- {{--詳細--}} - {{__('編集')}} -
-
-
-
-
+
+
+ @csrf
- +
- - - - - - - - - - - - + + + + + + + - @foreach($list as $item) - - - - - - - - - - - @endforeach + @foreach($list as $item) + + + + + + + + @endforeach
- {{__('validation.attributes.user_categoryid')}} - {{__('validation.attributes.print_name')}} - - {{__('validation.attributes.usertype_money')}} - - {{__('validation.attributes.usertype_remarks')}} -
+ + + + {{__('利用者分類ID')}} + + {{__('分類名')}} + + {{__('適用料率')}} + + {{__('備考')}} +
- {{mb_substr($item->user_categoryid, 0, 10)}} - {{mb_substr($item->print_name, 0, 10)}} - {{mb_substr($item->usertype_money, 0, 10)}} - {{mb_substr($item->usertype_remarks, 0, 20)}}
+
+ + 編集 +
+
+ {{mb_substr($item->user_categoryid, 0, 10)}} + + {{mb_substr($item->print_name, 0, 10)}} + + {{mb_substr($item->usertype_money, 0, 10)}} + + {{mb_substr($item->usertype_remarks, 0, 20)}} +
-
+
-
- -
+
- + + + @endsection \ No newline at end of file diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 04f4e11..fbbcae5 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -451,7 +451,6 @@