@extends('adminlte::page') @section('title', __("clinic-consumable.index.h5_consumable_list")) @section('content_header')
| {{ __("clinic-consumable.index.th_equipment_name") }} | {{ __("clinic-consumable.index.th_last_replaced_at") }} | {{ __("clinic-consumable.index.th_over_months") }} | {{ __("clinic-consumable.index.th_update") }} | {{ __("clinic-consumable.index.th_purchase_request") }} | {{ __("clinic-consumable.index.th_replace_interval") }} |
|---|---|---|---|---|---|
| {{ $ownConsumable->external_name }} | {{ $ownConsumable->last_replaced_at ? $ownConsumable->last_replaced_at->format('Y.m.d') : '-' }} |
@php
$bgColor = '';
$color = '000';
$monthText = '';
if ($ownConsumable->is_over) {
if ($ownConsumable->diff_month == 0) {
$bgColor = '#FF8F3F';
$monthText = __("clinic-consumable.index.td_target_month");
} else {
$bgColor = '#FF6565';
$monthText = abs($ownConsumable->diff_month) . __("clinic-consumable.index.td_month");
}
$color = 'fff';
} else {
if ($ownConsumable->diff_month == 0) {
$bgColor = '#F3D328';
$monthText = __("clinic-consumable.index.td_target_month");
$color = 'fff';
} elseif ($ownConsumable->diff_month < 2) {
$bgColor = '#F3D328';
$monthText = abs($ownConsumable->diff_month) . __("clinic-consumable.index.td_before_month");
$color = 'fff';
} else {
$monthText = abs($ownConsumable->diff_month) . __("clinic-consumable.index.td_before_month");
}
}
@endphp
{{ $monthText }} |
@if (\Auth::guard('clinic')->user()->isEditableRole()) {{ __("clinic-consumable.index.button_update") }} @endif | @if (\Auth::guard('clinic')->user()->isMakablePaymentRole()) @endif | {{ $ownConsumable->replacement_interval_month . __("clinic-consumable.index.td_month") }} @if (\Auth::guard('clinic')->user()->isEditableRole()) {{ __("clinic-consumable.index.button_change") }} @endif |
| {{ __("clinic-consumable.index.td_no_data") }} | |||||