@php $i = 1; @endphp @foreach ($contracts as $key => $contract) {{ $i++ }} {{ $contract->contract_no }} {{ $contract->name }} {{ $contract->contract_date }} {{ $contract->getGroup->name ?? '' }} {{ $contract->getType->name ?? '' }} {{ $contract->invoice_amount }} {{ $contract->start_date }} {{ $contract->end_date }} {{ $contract->status == 1 ? 'Active' : 'Inactive' }} @if (checkAuthPermission('purchase-contract.edit')) @endif @if (checkAuthPermission('purchase-contract.payment_edit')) Voucher Payment @endif @if (!empty($contract->file)) @endif @if ($action_id) {!! getApprovalInputField($contract->id, $action_id) !!} @endif @if ($action_id) @endif @endforeach