@extends('adminlte::page') @section('title', '担当顧客一覧') @section('content_header')
@stop @section('content')| 医院名 | 院長名 | 担当部署 | 来月予定 メンテナンス |
当月予定 メンテナンス |
メンテナンス 遅れ |
実施日 リクエスト |
部品調達 | 修理依頼 | 交換時期が 近い消耗品 |
消耗品 購入依頼 |
未読 チャット |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $result->name }} | {{ $result->clinic_manager_name }} | {{ !empty($result->sfaClinic->affiliate->department) ? $result->sfaClinic->affiliate->department : '' }} | @php $countNextMonthMaintenance = 0; if($result->supportMonth){ $countNextMonthMaintenance = $result->supportMonth->where('month', $nextMonth)->count(); } @endphp {{ $countNextMonthMaintenance }}件 | @php $countThisMonthMaintenance = 0; if($result->supportMonth){ $countThisMonthMaintenance = $result->supportMonth->where('month', $thisMonth)->count(); } @endphp {{ $countThisMonthMaintenance }}件 | @php $countExpiredMaintenance = 0; if($result->supportMonth){ $countExpiredMaintenance = $result->supportMonth ->where('is_completed', 0) ->where('month', '<',$thisMonth) ->groupBy('own_osada_equipment_id') ->count(); } @endphp {{ $countExpiredMaintenance }}件 | @php $countDatetimeRequestedMaintenance = 0; if($result->supportMonth){ $countDatetimeRequestedMaintenance = $result->supportMonth ->where('is_completed', 0) ->where('is_datetime_requested', 1) ->groupBy('own_osada_equipment_id') ->count(); } @endphp {{ $countDatetimeRequestedMaintenance }}件 | @php $countPartsNeedToBeProcuredMaintenance = 0; if($result->supportMonth){ $countPartsNeedToBeProcuredMaintenance = $result->supportMonth ->where('is_completed', 0) ->where('is_parts_procured', 0) ->where('month', '<=', $twoMonthLater) ->groupBy('own_osada_equipment_id') ->count(); } @endphp {{ $countPartsNeedToBeProcuredMaintenance }}件 | @php $countRepairRequest = 0; if($result->repairRequest){ $countRepairRequest = $result->repairRequest ->where('current_status', '!=', \Modules\SmartSupport\Entities\RepairRequest::STATUS_REQUEST_CLOSED) ->where('current_status', '!=', \Modules\SmartSupport\Entities\RepairRequest::STATUS_CANCEL) ->count(); } @endphp {{ $countRepairRequest }}件 | @php $countToBeReplacedOwnOsadaConsumable = 0; if($result->ownOsadaConsumable){ $countToBeReplacedOwnOsadaConsumable = $result->ownOsadaConsumable ->where('next_replacement_at', '<', $twoMonthLater) ->count(); } @endphp {{ $countToBeReplacedOwnOsadaConsumable }}件 | @php $countConsumablePurchaseRequest = 0; if($result->ownOsadaConsumable){ $countConsumablePurchaseRequest = $result->ownOsadaConsumable ->where('is_applying_purchase', 1) ->count(); } @endphp {{ $countConsumablePurchaseRequest }}件 | {{ $result->unread_chat_message_count }}件 |
| 登録されていません。 | |||||||||||