Export checkin to CSV

This commit is contained in:
shibafu
2020-05-20 01:50:34 +09:00
parent e872964144
commit cf9df74ed3
5 changed files with 115 additions and 0 deletions

View File

@@ -10,6 +10,8 @@
href="{{ route('setting') }}"><span class="oi oi-person mr-1"></span> プロフィール</a>
<a class="list-group-item list-group-item-action {{ Route::currentRouteName() === 'setting.privacy' ? 'active' : '' }}"
href="{{ route('setting.privacy') }}"><span class="oi oi-shield mr-1"></span> プライバシー</a>
<a class="list-group-item list-group-item-action {{ Route::currentRouteName() === 'setting.export' ? 'active' : '' }}"
href="{{ route('setting.export') }}"><span class="oi oi-data-transfer-download mr-1"></span> データのエクスポート</a>
<a class="list-group-item list-group-item-action {{ Route::currentRouteName() === 'setting.deactivate' ? 'active' : '' }}"
href="{{ route('setting.deactivate') }}"><span class="oi oi-trash mr-1"></span> アカウントの削除</a>
{{--<a class="list-group-item list-group-item-action {{ Route::currentRouteName() === 'setting.password' ? 'active' : '' }}"

View File

@@ -0,0 +1,23 @@
@extends('setting.base')
@section('title', 'データのエクスポート')
@section('tab-content')
<h3>データのエクスポート</h3>
<hr>
<p>チェックインデータをCSVファイルとしてダウンロードすることができます。</p>
<form class="mt-4" action="{{ route('setting.export.csv') }}" method="get">
{{ csrf_field() }}
<div class="mb-2"><strong>文字コード</strong></div>
<div class="form-check">
<label><input class="form-check-input" type="radio" name="charset" value="utf8" checked>UTF-8</label>
</div>
<div class="form-check">
<label><input class="form-check-input" type="radio" name="charset" value="sjis">Shift_JIS</label>
</div>
<button type="submit" class="btn btn-primary mt-3">ダウンロード</button>
</form>
@endsection
@push('script')
@endpush