@extends('layouts.layout_tack') @section('style') @endsection @section('modal') {{-- --}} @endsection @section('content')
Total
Scope
{{$count_scope}}
Staff
{{$count_register}}
Station
{{$count_station}}
{{-- Search --}}
Year
Month
Type
Scope
{{-- Search --}} {{-- Type --}}

Type

@foreach ($type as $tp) @php $s[0] = array('scope_type',$tp->scope_type); $s[1] = array('scope_status',"available"); $scope_count_use = DB::table('tb_scope')->where($s)->count(); $s[1] = array('scope_status',"repair"); $scope_count_not = DB::table('tb_scope')->where($s)->count(); $sum = $scope_count_use+$scope_count_not; $percen = ($scope_count_use*100)/$sum; @endphp
{{$tp->scope_type}}
{{$sum}}
@endforeach
{{-- Type --}} {{-- Company --}}

Company

{{-- Company --}} {{-- Age (Year) --}}

Age (Year)

{{-- Age (Year) --}}

Service warranty

Reprocess

  Dirty !*
Average time
35 min/scope

   Leak test
3 min.
   Cleaning
5 min.
   AER
24 min.
   Drying
24 min.

Storage !*

Training !*

Preventive & Maintenace !*

Usage scope !*

G01
GIF-HQ190
50
G02
GIF-HQ190
40
G03
CF-H190L
38

Usage operation room !*

Scope 1
50
Scope 3
40
Scope ERCP
38

Repair !*

Total repair cost
12,766,400 Baht

Total Breakdown
20 time

   Mistake

   Wear and Tears

Main phenomenon !*

   Wear and Tears 15 teme
   Mistake 5 time

@endsection @section('script') @php $arr = array(); foreach ($scope as $item){ if (array_key_exists($item->scope_band, $arr)) { $arr[$item->scope_band]['type'] = $item->scope_band; $arr[$item->scope_band]['num']++; }else{ $arr[$item->scope_band]['type'] = $item->scope_band; $arr[$item->scope_band]['num']=1; } } @endphp @php $arr = array(); foreach ($scope as $item){ $age = age($item->scope_installdate); if (array_key_exists($age, $arr)) { $arr[$age]['type'] = $age; $arr[$age]['num']++; }else{ $arr[$age]['type'] = $age; $arr[$age]['num']=1; } } sort($arr); @endphp @endsection