@extends('Admin.Layouts.master')

@section('content')

<?php

use App\Http\Controllers\MainAcontroller; ?>

<div class="card">
    <div class="card-body">

        @if ($message = Session::get('success'))
        <div class="alert border-0 bg-light-success alert-dismissible fade show py-2">
            <div class="d-flex align-items-center">
                <div class="fs-3 text-success"><i class="bi bi-check-circle-fill"></i>
                </div>
                <div class="ms-3">
                    <div class="text-success">{{ $message }}</div>
                </div>
            </div>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        </div>
        @endif

        @if ($message = Session::get('fail'))
        <div class="alert border-0 bg-light-danger alert-dismissible fade show py-2">
            <div class="d-flex align-items-center">
                <div class="fs-3 text-danger"><i class="bi bi-x-circle-fill"></i>
                </div>
                <div class="ms-3">
                    <div class="text-danger">
                        {{$message}}
                    </div>
                </div>
            </div>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
        </div>
        @endif

        <h6 class="mb-0 text-uppercase text-center"> {{ $data['clientname'][0] }} <br>
            {{ $data['area'][0] }} , {{ $data['location'][0] }} 
        </h6>
        <hr />


        <!-- accortion test -->
        <div class="row col-12">

            <div class="col-2">
                <h6>SL NO</h6>
            </div>

            <div class="col-2">
                <h6> Transfer NO </h6>
            </div>

            <div class="col-2">
                <h6>Branch</h6>
            </div>

            <div class="col-2">
                <h6>Edit Date </h6>
            </div>

            <div class="col-2">
                <h6> Type </h6>
            </div>
            
            <div class="col-2">
                <h6> Amount </h6>
            </div>

        </div>


        <div class="accordion" id="accordionExample">


            <?php echo $content; ?>


        </div>

    </div>
</div>

@endsection