@php use App\Components\SearchQueryComponent; use Carbon\Carbon; use App\Enums\DisplayStatus; use App\Enums\DisplayType; use App\Enums\NotificationKbn; use App\Enums\ContractTypeNew; use App\Models\Media; use App\Enums\Role; @endphp @extends('layouts.user',['notify'=>true]) @section('content')
通知一覧
@if ($role != Role::INSURANCE_CONTRACTOR) 2ヶ月前通知集計 @endif 2ヶ月前通知 @if ( $role == Role::SYSTEM_ADMIN || $role == Role::RECRUITER_PAYMENT || $role == Role::LUMP_SUM_PAYMENT || $role == Role::RECRUITER ) 通知予定件数 @endif その他通知
@if ($request['type'] != 'restNoti') @endif
@if ($informations->count() > 0)
{{ $informations->appends(SearchQueryComponent::alterQuery($request))->links('pagination.admin') }}
@endif @if ($informations->count() > 0)
@if ((!$request['type']) || ($request['type'] && $request['type'] == '2Month')) @if($role != Role::INSURANCE_CONTRACTOR) @endif @foreach ($informations as $information) {{-- @if ($information->type == DisplayType::TWO_MONTH) @endif --}} @if ($information->type !== DisplayType::TWO_MONTH && $information->kbn !== NotificationKbn::EXTERNAL_LINK) @endif @if ($information->type !== DisplayType::TWO_MONTH && $information->kbn == NotificationKbn::EXTERNAL_LINK) @endif @if($role != Role::INSURANCE_CONTRACTOR) @endif {{-- --}}
@endforeach
契約日
@if($role == Role::INSURANCE_CONTRACTOR || $role == Role::READER ) 保険種類 @else 契約者 @endif
@sortablelink('status', ' ステータス')
{{ Carbon::parse($information->contract_date)->format('Y-m-d') }}
@if($role == Role::INSURANCE_CONTRACTOR || $role == Role::READER ) {{ ContractTypeNew::getDescription($information->contract_type) }} @else {{ $information->contract_name }} @endif
{{ DisplayStatus::getDescription($information->status) }}
@endif @if (($request['type'] && $request['type'] == 'restNoti')) @foreach ($informations as $information) @if ($information->type == DisplayType::TWO_MONTH) @endif @if ($information->type !== DisplayType::TWO_MONTH && $information->kbn !== NotificationKbn::EXTERNAL_LINK) @endif @if ($information->type !== DisplayType::TWO_MONTH && $information->kbn == NotificationKbn::EXTERNAL_LINK) @endif
@endforeach
@sortablelink('sendtime', ' 送信日') @sortablelink('type', ' タイプ') 送信元・保険 @sortablelink('status', ' ステータス') 通知オプション @sortablelink('title', ' タイトル')
{{ Carbon::parse($information->sendtime)->format('Y-m-d') }} {{ DisplayType::getDescription($information->type) }} {{ $information->user_name }} {{ DisplayStatus::getDescription($information->status) }} {{ NotificationKbn::getDescription($information->kbn) }} {{ $information->title }}
@endif
{{ $informations->appends(SearchQueryComponent::alterQuery($request))->links('pagination.admin') }}
@else @if ((!$request['type']) || ($request['type'] && $request['type'] == '2Month'))
@if($role != Role::INSURANCE_CONTRACTOR) @endif
契約日
@if($role == Role::INSURANCE_CONTRACTOR || $role == Role::READER ) 保険種類 @else 契約者 @endif
ステータス
@endif @if (($request['type'] && $request['type'] == 'restNoti'))
@sortablelink('sendtime', ' 送信日') @sortablelink('type', ' タイプ') 送信元・保険 @sortablelink('status', ' ステータス') 通知オプション @sortablelink('title', ' タイトル')
@endif @endif
@endsection