@extends('layouts.app') @section('title', __('Marekebisho ya Stoo')) @section('content') @php $reasons = ['damaged' => 'Imeharibika', 'expired' => 'Imepita muda', 'lost' => 'Imepotea', 'found' => 'Imepatikana (ziada)', 'correction' => 'Kusahihisha', 'sample' => 'Sampuli/Promosheni']; @endphp
@if (auth()->user()->allows('stock.adjust'))
@csrf

{{ __('Omba marekebisho') }}

{{ __('Stoo haibadiliki mpaka meneja aidhinishe. Kila ombi linaonekana kwenye ripoti ya mmiliki') }}.
@if (auth()->user()->isBoss())
@endif
@endif
@forelse ($adjustments as $a) @empty@endforelse
{{ __('Tarehe') }}{{ __('Bidhaa') }}{{ __('Idadi') }}{{ __('Sababu') }}{{ __('Aliyeomba') }}{{ __('Hali') }}
{{ $a->created_at->format('d/m H:i') }}{{ $a->product->name }}
{{ $a->branch->name }} · {{ $a->note }}
{{ $a->qty > 0 ? '+' : '' }}{{ $a->qty }}{{ __($reasons[$a->reason] ?? $a->reason) }} {{ $a->requester->name }}{!! status_badge($a->status) !!}@if ($a->approver)
{{ $a->approver->name }}
@endif
@if ($a->status === 'pending' && auth()->user()->allows('stock.adjust_approve'))
@csrf
@csrf
@endif
{{ __('Hakuna marekebisho') }}
{{ $adjustments->links() }}
@endsection