@extends('layouts.admin') @section('content')

Account

@if (count($accounts) > 0)
@foreach ($accounts as $account) @endforeach
Account Description Division Active User Code Action
{{ $account->code }} {{ $account->description }} {{ $account->division->code }} {{ $account->is_active==1 ? 'Yes' : 'No' }} {{ DB::table('users')->where('account_id', $account->id)->where('is_active', 1)->count() }} {{ DB::table('codes')->where('account_id', $account->id)->where('is_active', 1)->count() }}
{{ $accounts->links() }} @else

No records found.

@endif
@endsection