@extends('inventory.layout') @section('title', 'User Detail') @section('content') @push('head') @endpush
{{-- --}}
@if(isset($posts)) {{--@foreach($posts as $post)--}} @foreach($userdetail as $user) @endforeach {{--@endforeach--}} @endif
{{ __('User Name')}} {{ __('Joining Date')}} {{ __('Checklist')}}
{{ isset($user->name) ? $user->name:'' }} {{ isset($user->joining_date) ? $user->joining_date:'' }} @if(isset($newval)) @foreach($newval as $val) @foreach($counts as $count) @if($val->id_checklist == $count->id_checklist) Checklist:{{$count->totalcount}} (items {{isset($totalcount) ? $totalcount:'0' }}) @endif @endforeach @foreach($userv as $newuser) @if(in_array($val->id, $detailid)) @if($newuser->user_id == $user->id) Completed: {{$val->total}} | Pending: {{ ($totalcount) - ($val->total)}} @else Completed: 0 | Pending: {{isset($totalcount) ? $totalcount:'0' }} @endif @endif @endforeach @endforeach @endif

@push('script') @endpush @endsection