320 lines
22 KiB
PHP
320 lines
22 KiB
PHP
@extends('layouts.app')
|
||
@section('title', '[東京都|〇〇駐輪場] オペレータマスタ')
|
||
@section('content')
|
||
<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><!-- /.col -->
|
||
<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"><a href="javascript:void(0);">[東京都|〇〇駐輪場]</a></li>
|
||
<li class="breadcrumb-item active">{{__('オペレータマスタ')}}</li>
|
||
</ol>
|
||
</div><!-- /.col -->
|
||
</div><!-- /.row -->
|
||
</div><!-- /.container-fluid -->
|
||
</div>
|
||
<!-- /.content-header -->
|
||
|
||
<!-- Main content -->
|
||
<section class="content">
|
||
<div class="container-fluid">
|
||
<div class="row">
|
||
<form action="{{ route('opes') }}" method="post" id="list-form">
|
||
@csrf
|
||
<input type="hidden" value="{{ $sort }}" name="sort" id="sort">
|
||
<input type="hidden" value="{{ $sort_type }}" name="sort_type" id="sort_type">
|
||
</form>
|
||
|
||
<div class="container-fluid mb20">
|
||
<button type="button" class="btn btn-sm btn-default mr10" onclick="location.href='{{ route('opes_add') }}'"> 新規</button>
|
||
<button type="submit" class="btn btn-sm btn-default mr10" form="form_delete">{{ __('削除') }}</button>
|
||
<button type="submit" class="btn btn-sm btn-default mr10" formaction="{{ route('opes_import') }}">{{ __('インポート') }}</button>
|
||
<button type="submit" class="btn btn-sm btn-default mr10" formaction="{{ route('opes_export') }}">{{ __('CSV出力') }}</button>
|
||
|
||
{{ $list->appends(['sort' => $sort,'sort_type'=>$sort_type])->links('pagination') }}
|
||
</div>
|
||
|
||
|
||
<div class="form col-lg-12">
|
||
@if(Session::has('success'))
|
||
<div class="alert alert-success alert-dismissible" role="alert">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
{{ Session::get('success') }}
|
||
</div>
|
||
@elseif(Session::has('error'))
|
||
<div class="alert alert-danger alert-dismissible">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<h4><i class="icon fa fa-ban"></i> {{__('誤差')}}:</h4>
|
||
{!! Session::get('error') !!}
|
||
</div>
|
||
@elseif(isset($errorMsg))
|
||
<div class="alert alert-danger alert-dismissible">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<h4><i class="icon fa fa-ban"></i> {{__('誤差')}}:</h4>
|
||
{!! $errorMsg !!}
|
||
</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('opes_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 role="row">
|
||
<td>
|
||
<input type="checkbox" class="minimal m-0 checkbox"
|
||
value="{{ $item->ope_id }}" name="pk[]">
|
||
<div class="btn_action">
|
||
<a href="{{ route('opes_info',['id'=>$item->ope_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>
|
||
|
||
<!-- オペレータID -->
|
||
<th class="sorting @if($sort=="ope_id"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_id"><span>{{__('validation.attributes.ope_id')}}</span>
|
||
</th>
|
||
<!-- オペレータ名 -->
|
||
<th class="sorting @if($sort=="ope_name"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_name"><span>{{__('validation.attributes.ope_name')}}</span>
|
||
</th>
|
||
<!-- オペレータ名 -->
|
||
<th><span>{{__('validation.attributes.password')}}</span></th>
|
||
<!-- オペレータ種別 -->
|
||
<th class="sorting @if($sort=="ope_type"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_type"><span>{{__('validation.attributes.ope_type')}}</span>
|
||
</th>
|
||
<!-- メールアドレス -->
|
||
<th><span>{{__('validation.attributes.ope_mail')}}</span>
|
||
</th>
|
||
<!-- 電話番号 -->
|
||
<th class="sorting @if($sort=="ope_phone"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_phone"><span>{{__('validation.attributes.ope_phone')}}</span>
|
||
</th>
|
||
<!-- キュー1アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que1"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que1">
|
||
<span>{{__('validation.attributes.ope_sendalart_que1')}}</span>
|
||
</th>
|
||
<!-- キュー2アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que2"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que2">
|
||
<span>{{__('validation.attributes.ope_sendalart_que2')}}</span>
|
||
</th>
|
||
<!-- キュー3アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que3"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que3">
|
||
<span>{{__('validation.attributes.ope_sendalart_que3')}}</span>
|
||
</th>
|
||
<!-- キュー4アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que4"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que4">
|
||
<span>{{__('validation.attributes.ope_sendalart_que4')}}</span>
|
||
</th>
|
||
<!-- キュー5アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que5"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que5">
|
||
<span>{{__('validation.attributes.ope_sendalart_que5')}}</span>
|
||
</th>
|
||
<!-- キュー6アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que6"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que6">
|
||
<span>{{__('validation.attributes.ope_sendalart_que6')}}</span>
|
||
</th>
|
||
<!-- キュー7アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que7"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que7">
|
||
<span>{{__('validation.attributes.ope_sendalart_que7')}}</span>
|
||
</th>
|
||
|
||
<!-- キュー8アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que8"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que8">
|
||
<span>{{__('validation.attributes.ope_sendalart_que8')}}</span>
|
||
</th>
|
||
<!-- キュー9アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que9"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que9">
|
||
<span>{{__('validation.attributes.ope_sendalart_que9')}}</span>
|
||
</th>
|
||
|
||
<!-- キュー10アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que10"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que10">
|
||
<span>{{__('validation.attributes.ope_sendalart_que10')}}</span>
|
||
</th>
|
||
|
||
<!-- キュー11アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que11"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que11">
|
||
<span>{{__('validation.attributes.ope_sendalart_que11')}}</span>
|
||
</th>
|
||
|
||
<!-- キュー12アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que12"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que12">
|
||
<span>{{__('validation.attributes.ope_sendalart_que12')}}</span>
|
||
</th>
|
||
|
||
<!-- キュー13アラート送信 -->
|
||
<th class="sorting @if($sort=="ope_sendalart_que13"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_sendalart_que13">
|
||
<span>{{__('validation.attributes.ope_sendalart_que13')}}</span>
|
||
</th>
|
||
|
||
<!-- 管理者権限付与 -->
|
||
<th class="sorting @if($sort=="ope_auth1"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_auth1">
|
||
<span>{{__('validation.attributes.ope_auth1')}}</span>
|
||
</th>
|
||
|
||
<!-- エリアマネージャー権限付与 -->
|
||
<th class="sorting @if($sort=="ope_auth1"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_auth1">
|
||
<span>{{__('validation.attributes.ope_auth1')}}</span>
|
||
</th>
|
||
|
||
<!-- エリアオペレーター権限付与 -->
|
||
<th class="sorting @if($sort=="ope_auth1"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_auth1">
|
||
<span>{{__('validation.attributes.ope_auth1')}}</span>
|
||
</th>
|
||
|
||
<!-- オペレーター権限付与 -->
|
||
<th class="sorting @if($sort=="ope_auth1"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_auth1">
|
||
<span>{{__('validation.attributes.ope_auth1')}}</span>
|
||
</th>
|
||
<!-- 退職フラグ -->
|
||
<th class="sorting @if($sort=="ope_quit_flag"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_quit_flag"><span>{{__('validation.attributes.ope_quit_flag')}}</span>
|
||
</th>
|
||
<!-- 退職日 -->
|
||
<th class="sorting @if($sort=="ope_quitday"){{$sort_type == 'asc'?'sorting_asc':'sorting_desc'}}@endif"
|
||
sort="ope_quitday"><span>{{__('validation.attributes.ope_quitday')}}</span>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@foreach($list as $item)
|
||
<tr>
|
||
<!-- オペレータID -->
|
||
<td class='sm-item text-left'><span>{{mb_substr($item->ope_id, 0, 10)}}</span>
|
||
</td>
|
||
<!-- オペレータ名 -->
|
||
<td class='sm-item text-right'><span>{{mb_substr($item->ope_name, 0, 10)}}</span>
|
||
</td>
|
||
<td class='sm-item text-right'><span>{{mb_substr($item->ope_pass, 0, 10)}}</span>
|
||
</td>
|
||
<!-- オペレータ種別 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{ __( \App\Models\Ope::OPE_TYPE[$item->ope_type] ) }}</span>
|
||
</td>
|
||
<!-- メールアドレス -->
|
||
<td class='sm-item text-right'><span>{{mb_substr($item->ope_mail, 0, 10)}}</span>
|
||
</td>
|
||
<!-- 電話番号 -->
|
||
<td class='sm-item text-left'>
|
||
<span>{{mb_substr($item->ope_phone, 0, 15)}}</span></td>
|
||
<!-- キュー1アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que1?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー2アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que2?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー3アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que3?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー4アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que4?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー5アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que5?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー6アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que6?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー7アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que7?__("はい"):__("いいえ")}}</span></td>
|
||
|
||
<!-- キュー8アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que8?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー9アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que9?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー10アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que10?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー11アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que11?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー12アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que12?__("はい"):__("いいえ")}}</span></td>
|
||
<!-- キュー13アラート送信 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_sendalart_que13?__("はい"):__("いいえ")}}</span></td>
|
||
|
||
<!-- 管理者権限付与 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_auth1}}</span></td>
|
||
<!-- エリアマネージャー権限付与 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_auth2}}</span></td>
|
||
<!-- エリアオペレーター権限付与 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_auth3}}</span></td>
|
||
<!-- オペレーター権限付与 -->
|
||
<td class='sm-item text-right'>
|
||
<span>{{$item->ope_auth4}}</span></td>
|
||
<!-- 退職フラグ -->
|
||
<td class='sm-item text-right'><span>{{$item->ope_quit_flag?__("退職"):__("退職しない")}}</span>
|
||
</td>
|
||
<!-- 退職日 -->
|
||
<td class='sm-item text-right'>
|
||
@if($item->ope_quitday)
|
||
<span class="text-muted"><i class="fa fa-clock-o mr-1"></i>
|
||
{{mb_substr($item->ope_quitday, 0, 10)}}
|
||
</span>
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
@endforeach
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- /.container-fluid -->
|
||
</section>
|
||
<!-- /.content -->
|
||
@endsection |