@extends('layouts.app') @section('title', 'Stock Counts') @section('content')

Stock Counts

@if(session('success'))
{!! session('success') !!}
@endif @if(session('error'))
{!! session('error') !!}
@endif @if(auth()->user()->can('stocktake.create')) @endif

Reset
Total Increase

{{ number_format($totals->total_increase ?? 0, 2) }}

Total Decrease

{{ number_format($totals->total_decrease ?? 0, 2) }}


@foreach ($stockCounts as $index => $stockCount) @endforeach
# Business Location Added By Created At Ref No Update Status Action
{{ $index + 1 }} {{ $stockCount->location_name }} {{ $stockCount->first_name }} {{ \Carbon\Carbon::parse($stockCount->created_at)->format('d/m/Y H:i') }} {{ $stockCount->ref_no }} @if($stockCount->status === 'Updated') Updated @else Pending @endif @if(auth()->user()->can('stocktake.view')) @endif @if(auth()->user()->can('stocktake.delete'))
@csrf @method('DELETE')
@endif
{{ $stockCounts->links() }}
@endsection