@extends('layouts.app') @section('title', __('Bidhaa')) @section('content') @php $canPrice = auth()->user()->allows('products.prices'); @endphp
@if (auth()->user()->allows('products.manage'))@endif @if (auth()->user()->allows('products.manage')){!! icon('plus') !!} {{ __('Bidhaa mpya') }}@endif
@if ($canPrice)@endif @php $grp = false; @endphp @forelse ($products as $p) @if (! request('category') && $grp !== ($p->category->name ?? '')) @php $grp = $p->category->name ?? ''; @endphp @endif @if ($canPrice)@endif @empty@endforelse
{{ __('SKU') }}{{ __('Bidhaa') }}{{ __('Kundi') }}{{ __('Bei ya kununua') }}{{ __('Bei ya kuuza') }}{{ __('Bei ya chini') }}{{ __('Stoo (zote') }}){{ __('Hali') }}
{!! icon('layers') !!} {{ $grp ?: __('Bila kundi') }}
{{ $p->sku }}{{ $p->name }} / {{ $p->unit }}{{ $p->category->name ?? '—' }}{{ money($p->cost_price, false) }}{{ money($p->sell_price, false) }}{{ money($p->min_price, false) }} {{ (int) $p->total_qty }} {!! status_badge($p->is_active ? 'active' : 'closed') !!} @if (auth()->user()->allows('products.manage')){{ __('Hariri') }}@endif
{{ __('Hakuna bidhaa') }}
{{ $products->links() }}
@endsection