@extends('layouts.app') @push('styles') @endpush @section('filter-section')
@lang('app.clearFilters')
@endsection @section('content')
@lang('biometric::app.commandStatusDefinitions')
@lang('biometric::app.pending')
@lang('biometric::app.pendingDefinition')
@lang('biometric::app.sent')
@lang('biometric::app.sentDefinition')
@lang('biometric::app.executed')
@lang('biometric::app.executedDefinition')
@lang('biometric::app.failed')
@lang('biometric::app.failedDefinition')
# @lang('app.employee') @lang('biometric::app.deviceName') @lang('biometric::app.commandType') @lang('app.status') @lang('app.createdAt') @lang('biometric::app.sentAt') @lang('biometric::app.executedAt') @lang('biometric::app.failedAt') @forelse($pendingCommands as $key => $command) {{ $key + 1 }} @if($command->user)
{{ !is_null($command->employee_id) ? $command->employee_id : '-' }}
@else -- @endif @if($command->device) {{ $command->device->device_name }} @else -- @endif @if($command->type == 'DELETEUSER') {{ $command->type }} @elseif($command->type == 'CREATEUSER') {{ $command->type }} @else {{ $command->type }} @endif @if($command->status == 'pending') @lang('biometric::app.pending') @elseif($command->status == 'sent') @lang('biometric::app.sent') @elseif($command->status == 'executed') @lang('biometric::app.executed') @elseif($command->status == 'failed') @lang('biometric::app.failed') @endif
{{ $command->created_at->setTimezone(company()->timezone)->format(company()->time_format) }}
@if($command->created_at->isToday()) @lang('app.today') @else {{ $command->created_at->setTimezone(company()->timezone)->format(company()->date_format) }} @endif
@if($command->sent_at)
{{ $command->sent_at->setTimezone(company()->timezone)->format(company()->time_format) }}
@if($command->sent_at->isToday()) @lang('app.today') @else {{ $command->sent_at->setTimezone(company()->timezone)->format(company()->date_format) }} @endif
@else -- @endif @if($command->executed_at)
{{ $command->executed_at->setTimezone(company()->timezone)->format(company()->time_format) }}
@if($command->executed_at->isToday()) @lang('app.today') @else {{ $command->executed_at->setTimezone(company()->timezone)->format(company()->date_format) }} @endif
@else -- @endif @if($command->failed_at)
{{ $command->failed_at->setTimezone(company()->timezone)->format(company()->time_format) }}
@if($command->failed_at->isToday()) @lang('app.today') @else {{ $command->failed_at->setTimezone(company()->timezone)->format(company()->date_format) }} @endif
@else -- @endif @empty @endforelse
@endsection @push('scripts') @endpush