@extends('layouts.app', ['pageSlug' => 'customermonitor']) @section('content')
@if(isset($monitor)) Edit Customer Monitor @else Add Customer Monitor @endif

@csrf
@if(isset($monitor)) @php $userid = json_decode($monitor->user_id); @endphp @endif
@if(isset($monitor)) @else @endif
Customer Monitor List

@foreach ($monitorlist as $key => $item) @php $alert = json_decode($item->user_id); $customer = json_decode($item->customer_id); @endphp @endforeach
# Name Days Alert To By Created Action
{{$key+1}} {{$item->customer_id}} {{$item->days}} @foreach($alert as $a) @php $user = App\User::find($a); @endphp {{$user->name}}, @endforeach {{$item->is_admin ? 'admin' : 'portal'}} {{formatYmd($item->created_at)}}
@endsection @push('js') @endpush