@extends('admin.layouts.master') @section('main-content')

{{ __('Dashboard') }}

{{ Breadcrumbs::render('dashboard') }}
@if(auth()->user()->getrole->name == 'Employee')

{{ __('Total Visitors') }}

{{$totalVisitor}}

{{ __('Total Pre Registers') }}

{{$totalPrerigister}}
@else

{{ __('Total Employees') }}

{{$totalEmployees}}

{{ __('Total Visitors') }}

{{$totalVisitor}}

{{ __('Total Pre Registers') }}

{{$totalPrerigister}}
@endif

{{ __('Visitors') }} {{$totalVisitor}}

@if(!blank($visitors)) @foreach($visitors as $visitor) @php if($loop->index > 5) { break; } @endphp @endforeach @endif
{{ __('Name') }} {{ __('Email') }} {{ __('Visitor ID') }} {{ __('Employee') }} {{ __('Checkin') }} {{ __('Action') }}
{{ $visitor->visitor->name }} {{ $visitor->visitor->email }} {{ $visitor->reg_no }} {{ $visitor->employee->user->name }} {{ date('d-m-Y h:i A', strtotime($visitor->checkin_at)) }}

{{ auth()->user()->name }}

{{ auth()->user()->getrole->name ?? '' }}

  • {{ auth()->user()->username }}
  • {{ auth()->user()->email }}
  • {{ auth()->user()->phone }}
  • {{ auth()->user()->address }}
  • @endsection