@extends('layouts.app') @section('title', __('Mienendo ya Stoo')) @section('content') @php $types = ['purchase' => ['Manunuzi', 'green'], 'sale_release' => ['Mauzo', 'blue'], 'sale_return' => ['Kurudishwa', 'amber'], 'adjustment' => ['Marekebisho', 'red'], 'transfer_out' => ['Uhamisho (nje)', 'violet'], 'transfer_in' => ['Uhamisho (ndani)', 'violet'], 'count' => ['Hesabu', 'gray']]; @endphp
@if (auth()->user()->isBoss())@endif
@forelse ($movements as $m) @empty@endforelse
{{ __('Muda') }}{{ __('Bidhaa') }}{{ __('Stoo') }}{{ __('Aina') }}{{ __('Idadi') }}{{ __('Salio') }}{{ __('Na nani') }}{{ __('Maelezo') }}
{{ $m->created_at->format('d/m H:i') }}{{ $m->product->name }}{{ $m->branch->name }} {{ __($types[$m->type][0] ?? $m->type) }} {{ $m->qty > 0 ? '+' : '' }}{{ $m->qty }}{{ $m->balance_after }} {{ $m->user->name ?? __('Mfumo') }}{{ $m->note }}
{{ __('Hakuna') }}
{{ $movements->links() }}
@endsection