@extends('master_header')

@section('content')

    @include('includes.header-topbar')

    <!-- ========== App Menu ========== -->
    @include('md.sidebar-menu')
    <!-- Left Sidebar End -->
    <!-- Vertical Overlay-->
    <div class="vertical-overlay"></div>

    <!-- ============================================================== -->
    <!-- Start right Content here -->
    <!-- ============================================================== -->

    <!-- ============================================================== -->
    <!-- Start right Content here -->
    <!-- ============================================================== -->
    <div class="main-content">
        <div class="page-content">
            <div class="container-fluid">

                <!-- start page title -->
                <div class="row">
                    <div class="col-12">
                        <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                            <h4 class="mb-sm-0">View Agent</h4>

                            <div class="page-title-right">
                                <ol class="breadcrumb m-0">
                                    <li class="breadcrumb-item"><a href="javascript: void(0);">Agent</a></li>
                                    <li class="breadcrumb-item active">View Agent</li>
                                </ol>
                            </div>

                        </div>
                    </div>
                </div>
                <!-- end page title -->

                <div class="row">
                    <div class="col-xxl-8">
                        <!--end card-->
                        <div class="card mb-3">
                            <div class="card-body">
                                <div class="table-card">
                                    <table class="table mb-0">
                                        <tbody>
                                        <tr>
                                            <td class="fw-medium">Agent Name: </td>
                                            <td>{{$agent->agent_name ?? 'Nill' }}</td>
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Agent Bank Name: </td>
                                            <td>{{$agent->agent_bank ?? ''}}</td>
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Agent Account Number: </td>
                                            <td class="attachment-cell">
                                                 {{$agent->agent_account_no ?? 'Nill'}}

                                            </td>



                                        </tr>

                                        <tr>
                                            <td class="fw-medium">Agent Account Nname</td>
                                            <td>{{$agent->agent_account_name ?? ''}}</td>
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Customer's Project</td>
                                            <td>{{$agent->project ?? ''}}</td>
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Customer's House Type</td>
                                            <td>{{$agent->house_type ?? ''}}</td>
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Amount</td>

                                            {{-- <td> {{number_format($agent->amount) ?? ''}}</td> --}}
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Commission</td>
                                            <td>{{$agent->commission ?? ''}}</td>
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Customer's Name</td>
                                            <td>{{$agent->customer_name ?? ''}}</td>
                                        </tr>
                                        <br>

                                        <tr>
                                            <td class="fw-medium">Amount Paid</td>
                                            <td>{{$agent->amount_paid ?? ''}}</td>
                                        </tr>
                                        <tr>
                                            <td class="fw-medium">Amount Left</td>
                                            <td>{{$agent->amount_left ?? ''}}</td>
                                        </tr>

                                        </tbody>
                                    </table>
                                    <!--end table-->
                                </div>
                            </div>
                        </div>
                    </div>
                    <!---end col-->
                    <!--end col-->
                </div>
                <!--end row-->
            <!-- end modal -->

            </div>
            <!-- container-fluid -->
        </div>
        <!-- End Page-content -->

       @include('includes.footer')
    </div>
    <!-- end main content-->

</div>
<!-- END layout-wrapper -->


@endsection
