@extends('../layout/' . $layout) @section('subhead') Atarud MIS - Billings @endsection @section('subcontent')

Billings

Add
@foreach ($billings as $row) @php $account = App\Models\ChartofAccount::where('id', $row->account_id)->first(); $accountName = $account != null ? $account->name :''; @endphp @endforeach
# Account Name Period Type Amount Description ACTIONS
#{{ $loop->index + 1 }} {{ $accountName }} {{ $row->period_type }} {{ $row->amount }} {{ $row->description }} Edit Delete
@include('../pages/billings/create') @include('../pages/account/edit') @include('../pages/account/delete') @endsection @section('script') @endsection