@extends('layouts.app') @section('content')
{{ session('success') }}
@endif @if($errors->any()){{ $errors->first() }}
@endif{{ $node ? 'Last received: '.($node->synced_at ?: 'Waiting for first sync') : 'No registered branches available.' }}
{{ ucfirst($command->action) }} requested {{ $command->created_at }} · {{ ucfirst($result['status'] ?? 'Pending') }} {{ $result['captured_at'] ?? $result['message'] ?? '' }}
@endforeach| Period | Opened | Closed | Actions |
|---|---|---|---|
| {{ $row['name'] ?? '' }} | {{ $row['opened_at'] ?? '' }} | {{ $row['closed_at'] ?? 'Open' }} | View Report @permission('inventory.stock_period_close') @if(($row['status'] ?? '') === 'open') @endif @endpermission |
{{ $period['opened_at'] }} to {{ $period['closed_at'] ?? 'Open' }}
Export CSV| Product | Opening | Purchased | Added | Sold | Other | Expected Closing | Expected at Count | Actual Count | Difference |
|---|---|---|---|---|---|---|---|---|---|
| {{ $row['product_name'] }} | @foreach(['opening', 'purchased', 'added', 'sold', 'other', 'closing', 'count_expected', 'actual', 'difference'] as $column){{ isset($row[$column]) ? number_format((float) $row[$column], 2) : '–' }} | @endforeach
| Reference | Date | Name | Total | Balance |
|---|---|---|---|---|
| {{ $row[$reference] }} | {{ $row[$date] }} | {{ $row[$party] }} | {{ $row['total_amount'] }} | {{ $row['balance_amount'] }} |
| Barcode | Product | Quantity |
|---|---|---|
| {{ $row['barcode'] }} | {{ $row['name'] }} | {{ $row['stock_quantity'] }} |