@extends('layouts.app') @section('title', __('Ukaguzi wa Stoo')) @section('content') @php $u = auth()->user(); $active = $counts->where('status', 'counting'); @endphp

{{ __('Hesabu ya ghafla (blind count): anayehesabu haoni idadi ya mfumo. Ukimaliza, ripoti inatengenezwa yenyewe na kutumwa kwa mmiliki.') }}

@foreach ($active as $c)
{!! icon('clock') !!} {{ $c->title }} · {{ $c->branch->name }}{{ $c->category ? ' · ' . $c->category->name : '' }} · {{ __('ulianza') }} {{ $c->started_at->format('d/m H:i') }} {{ __('Endelea kuhesabu') }} →
@endforeach
@if ($canSee)@endif @forelse ($counts as $c) @if ($canSee) @endif @empty@endforelse
#{{ __('Ukaguzi') }}{{ __('Stoo') }}{{ __('Kundi') }}{{ __('Mkaguzi') }}{{ __('Bidhaa') }}{{ __('Usahihi') }}{{ __('Upungufu') }}{{ __('Tofauti halisi') }}{{ __('Hali') }}
{{ $c->id }} {{ $c->title }}
{{ optional($c->started_at ?? $c->created_at)->format('d/m/Y H:i') }}
{{ $c->branch->name }} {{ $c->category->name ?? __('Zote') }} {{ $c->counter->name }} {{ $c->counted_items ?: '—' }}{{ $c->scope_items ? ' / ' . $c->scope_items : '' }}@if ($c->status !== 'counting'){{ rtrim(rtrim(number_format($c->accuracy, 1), '0'), '.') }}%@endif {{ $c->status !== 'counting' ? money(abs($c->shortage_value), false) : '' }} {{ $c->status !== 'counting' ? money($c->variance_value, false) : '' }}{!! status_badge($c->status === 'counting' ? 'open' : $c->status) !!} @if ($c->status === 'counting'){{ __('Hesabu') }} @elseif ($canSee){{ __('Ripoti') }}@endif
{{ __('Bado hakuna ukaguzi') }}
{{ $counts->links() }}
@endsection