102 lines
4.8 KiB
PHP
102 lines
4.8 KiB
PHP
@extends('layouts.app')
|
|
@section('title', '[東京都|○○駐車場] 管轄駐輪場')
|
|
|
|
@section('content')
|
|
<!-- Content Header -->
|
|
<div class="content-header">
|
|
<div class="container-fluid">
|
|
<div class="row mb-2">
|
|
<div class="col-lg-6">
|
|
<h1 class="m-0 text-dark">管轄駐輪場マスタ</h1>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<ol class="breadcrumb float-sm-right text-sm">
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">XX様info(ホーム)</a></li>
|
|
<li class="breadcrumb-item active">管轄駐輪場</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<section class="content">
|
|
<div class="container-fluid">
|
|
<form action="{{ route('jurisdiction_parkings') }}" method="POST" id="list-form">
|
|
@csrf
|
|
<input type="hidden" name="sort" value="{{ $sort ?? '' }}">
|
|
<input type="hidden" name="sort_type" value="{{ $sort_type ?? '' }}">
|
|
</form>
|
|
|
|
<div class="container-fluid mb20">
|
|
<button type="button" class="btn btn-sm btn-default mr10" onclick="location.href='{{ route('jurisdiction_parkings_add') }}'">新規</button>
|
|
<button type="button" class="btn btn-sm btn-default mr10" id="delete">削除</button>
|
|
<button type="submit" class="btn btn-sm btn-default mr10" form="form_export">CSV出力</button>
|
|
{{ $list->appends(['sort' => $sort ?? '', 'sort_type' => $sort_type ?? ''])->links('pagination') }}
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
@if(session('success'))
|
|
<div class="alert alert-success alert-dismissible">{{ session('success') }}</div>
|
|
@elseif(session('error'))
|
|
<div class="alert alert-danger alert-dismissible">{{ session('error') }}</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="col-lg-12 row sample03-wrapper no_padding_right mb20">
|
|
<!-- 左側チェックボックス -->
|
|
<div class="col-xl-2 col-lg-2 col-md-2 col-sm-3 col-xs-3 table_left">
|
|
<form action="{{ route('jurisdiction_parkings_delete') }}" method="POST" id="form_delete">
|
|
@csrf
|
|
<table class="table dataTable">
|
|
<thead>
|
|
<tr>
|
|
<th><input type="checkbox" class="minimal m-0" id="checkbox_all"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list as $item)
|
|
<tr>
|
|
<td>
|
|
<input type="checkbox" class="minimal m-0 checkbox" value="{{ $item->jurisdiction_parking_id }}" name="pk[]">
|
|
<div class="btn_action">
|
|
<a href="{{ route('jurisdiction_parkings_edit', ['jurisdiction_parking_id' => $item->jurisdiction_parking_id]) }}" class="btn btn-sm btn-default ml10">編集</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- 右側データテーブル -->
|
|
<div class="col-lg-10 col-xl-10 col-md-10 col-sm-9 col-xs-9 table_right no_padding_right">
|
|
<div class="scroll">
|
|
<table class="table dataTable">
|
|
<thead>
|
|
<tr>
|
|
<th><span>管轄駐輪場ID</span></th>
|
|
<th><span>管轄名</span></th>
|
|
<th><span>オペレーター(エリアマネージャ)</span></th>
|
|
<th><span>駐車場</span></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list as $item)
|
|
<tr>
|
|
<td class="sm-item text-left">{{ $item->jurisdiction_parking_id }}</td>
|
|
<td class="sm-item text-left">{{ $item->jurisdiction_parking_name }}</td>
|
|
<td class="sm-item text-left">{{ $item->ope->ope_name ?? '' }}</td>
|
|
<td class="sm-item text-left">{{ $item->park->park_name ?? '' }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<form action="{{ route('jurisdiction_parkings_export') }}" method="GET" id="form_export"></form>
|
|
@endsection |