@if ($row->accounts->type == 1) Debit @else Credit @endif