@extends('adminlte::page') @section('title', '対象消耗品一覧') @section('content_header')
@stop @section('content')
  • 交換該当月・1ヶ月前
  • 交換該当月(期限超過)
  • 1ヶ月後~
@if($ownOsadaConsumables->count() > 0) @foreach($ownOsadaConsumables as $ownOsadaConsumable) @endforeach @else @endif
機器名称 前回交換日 経過月数 消耗品の更新 購入依頼の確認 交換間隔
{{ $ownOsadaConsumable->external_name }} {{ $ownOsadaConsumable->last_replaced_at ? $ownOsadaConsumable->last_replaced_at->format('Y.m.d') : '-' }} @php $backgroundColor = ''; $color = '#fff'; $monthText = ''; $month = abs($ownOsadaConsumable->diff_month); if($ownOsadaConsumable->is_over){ if($month == 0){ $backgroundColor = '#FF8F3F'; $monthText = '該当月'; }else{ $backgroundColor = '#FF6565'; $monthText = $month . 'ヶ月'; } }else{ if($month < 2){ $backgroundColor = '#F3D328'; }else{ $color = '#000'; } if($month == 0){ $monthText = '該当月'; }else{ $monthText = $month . 'ヶ月前'; } } @endphp

{{$monthText}}

更新 購入依頼の確認 {{$ownOsadaConsumable->replacement_interval_month}}ヶ月 変更 @include('productpromotion::admin.purchasedEquipment.modal.update', compact(['clinic_id', 'own_osada_equipment_id', 'ownOsadaConsumable'])) @include('productpromotion::admin.purchasedEquipment.modal.update_interval', compact(['clinic_id', 'own_osada_equipment_id', 'ownOsadaConsumable'])) @if($ownOsadaConsumable->is_applying_purchase == 1 && $ownOsadaConsumable->consumablePurchaseRequest->count() > 0) @include('productpromotion::admin.purchasedEquipment.modal.approve_purchase_request', compact(['clinic_id', 'own_osada_equipment_id', 'ownOsadaConsumable'])) @endif
条件に該当する消耗品はありません。
{{ $ownOsadaConsumables->appends(request()->query())->links() }}
@stop @section('css') @stop @section('js') @stop