@extends('layouts.master') @section('content')

{{ $issue->issue_no }}

Stock Issue Details
Back @if($issue->issue_status === 'APPROVED')
@csrf
@endif
{{-- ISSUE INFORMATION --}}
Issue Information
Issue Type
{{ $issue->issue_type }}
Source Location
{{ $issue->source_location_name ?? '-' }}
Destination Location
{{ $issue->destination_location_name ?? '-' }}
Reference No
{{ $issue->reference_no ?? '-' }}
{{-- KPI CARDS --}}
{{ number_format($items->count()) }}
Line Items
{{ number_format($items->sum('quantity_issued')) }}
Quantity Issued
UGX {{ number_format($items->sum('line_total'), 2) }}
Total Value
{{ $issue->issue_status }}
Status
{{-- ISSUED ITEMS --}}
Issued Items
@forelse($items as $item) @empty @endforelse
Code Item Batch Expiry Quantity Unit Cost Line Total
{{ $item->item_code }} {{ $item->item_name }} {{ $item->batch_no }} @if($item->expiry_date) {{ \Carbon\Carbon::parse($item->expiry_date)->format('d-m-Y') }} @else - @endif {{ number_format($item->quantity_issued) }} UGX {{ number_format($item->unit_cost, 2) }} UGX {{ number_format($item->line_total, 2) }}
No items found.
{{-- REMARKS --}}
Remarks
{{ $issue->remarks ?? 'No remarks recorded.' }}
{{-- WORKFLOW INFORMATION --}} @if($issue->issue_status !== 'DRAFT')
Workflow Information
Requested By
{{ $issue->requested_by_name ?? '-' }}
Approved By
{{ $issue->approved_by_name ?? '-' }}
Posted By
{{ $issue->posted_by_name ?? '-' }}
Requested At
{{ $issue->created_at ?? '-' }}
Approved At
{{ $issue->approved_at ?? '-' }}
Posted At
{{ $issue->posted_at ?? '-' }}
@endif {{-- WORKFLOW REQUEST --}} @if($workflowRequest)
Approval Workflow
Workflow
{{ $workflowRequest->workflow_name }}
Status
{{ $workflowRequest->status }}
Submitted At
{{ $workflowRequest->submitted_at ?? '-' }}
Completed At
{{ $workflowRequest->completed_at ?? '-' }}
@endif @if($issue->issue_status === 'DRAFT')
Draft Actions
@endif
@endsection