101 lines
4.7 KiB
PHP
101 lines
4.7 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('print_areas') }}" 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('print_areas_add') }}'">新規</button>
|
|
<button type="submit" class="btn btn-sm btn-default mr10" form="form_delete" onclick="return confirm('選択された項目を削除しますか?');">削除</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('print_areas_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->print_area_id }}" name="pk[]">
|
|
<div class="btn_action">
|
|
<a href="{{ route('print_areas_edit', ['print_area_id' => $item->print_area_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>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list as $item)
|
|
<tr>
|
|
<td class="sm-item text-left">{{ $item->print_area_id }}</td>
|
|
<td class="sm-item text-left">{{ $item->print_area_name }}</td>
|
|
<td class="sm-item text-left">{{ optional($item->park)->park_name }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<form action="{{ route('print_areas_export') }}" method="GET" id="form_export"></form>
|
|
@endsection
|