@extends('layouts.invoices') @section('content')
Create your first payment voucher using the button above
| Voucher # | Sub-Agent | Type | Workers | Amount | Status | Created | Actions | |
|---|---|---|---|---|---|---|---|---|
| {{ $voucher->voucher_number }} |
{{ substr($voucher->subAgent->name, 0, 1) }}
{{ $voucher->subAgent->name }}
{{ $voucher->subAgent->email }}
|
{{ ucfirst($voucher->voucher_type) }} | @php $workersData = $voucher->workers_data ? (is_array($voucher->workers_data) ? $voucher->workers_data : json_decode($voucher->workers_data, true) ) : []; $workerCount = is_array($workersData) ? count($workersData) : 0; @endphp {{ $workerCount }} {{ Str::plural('Worker', $workerCount) }} |
{{ number_format($voucher->total_amount, 2) }}
{{ $voucher->currency }}
|
{{ ucfirst($voucher->status) }} |
{{ $voucher->created_at->format('M d, Y') }}
{{ $voucher->created_at->format('h:i A') }}
|
@if($voucher->status === 'pending')
@endif
|
Office expenses content will go here.