@extends('layouts.app') @section('content')
@php $tooltip = __('titles.the_equipment_is_functioning_normally'); if ($machinery->status->value == 'faulty_defective') { $tooltip = __( 'titles.the_equipment_is_malfunctioning_but_not_yet_assessed', ); } elseif ($machinery->status->value == 'under_maintenance') { $tooltip = __('titles.the_equipment_is_actively_being_serviced'); } elseif ($machinery->status->value == 'not_in_use') { $tooltip = __( 'titles.the_equipment_cannot_be_repaired_and_is_written_off', ); } $title = "
" . $machinery->name . '
' . view('components.badge', ['status' => $machinery->status->value, 'translate_from_forms' => true]) . "
"; $breadcrumbs = ""; @endphp @can('update', $machinery) {{ trans('forms.lbl_edit') }} @endcan @can('update', $machinery) @endcan @if($machinery->responsibleUsers()->contains('id', auth()->user()->id) ) @endif
@stop