@extends('layouts.frontend.app') @section('content')
{{-- {!! Toastr::message() !!} --}}
Voucher List
@foreach ($vouchers as $voucher) @endforeach
# Voucher Type Voucher Name Voucher Link Status Action
{{ $vouchers->currentPage() * $vouchers->perPage() - $vouchers->perPage() + 1 + $loop->index }} {{ $voucher->type == true ? 'Income' : 'Expense' }} {{$voucher->name}} {{ $voucher->expenses->count() }} @if ($voucher->active == true) Active @else Inactive @endif @role("admin|manager")
@csrf @method('DELETE')
@elserole("field-officer") @endrole
{{ $vouchers->links() }}
@endsection