<link href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap-switch-button@1.1.0/css/bootstrap-switch-button.min.css" rel="stylesheet">

@extends('admin.layout.admin_layout')
@section('content')
    <div class="content-wrapper" style="min-height: 357px;">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0">About Section </h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="{{route('admin::dashboard')}}">Dashboard</a> </li>
                            <li class="breadcrumb-item active">About Section</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->
        @include('admin.layout.message')
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-header">
                                <h3 class="card-title">About Section</h3>
                                <h3 class="card-title" style="float: right!important;">
                                    <!-- <a href="javascript:void(0);" class="btn btn-primary btn-flat" data-act="ajax-modal" data-title="Add Services" data-append-id="AjaxModelContent"
                                       data-action-url="{{route("admin::add_services")}}">
                                        <i class="fa fa-plus-circle"></i> Add
                                    </a> -->

                                </h3>

                            </div>
                            <!-- /.card-header -->
                            <div class="card-body">
                                <table id="example1" class="table table-bordered table-striped">
                                    <thead>
                                    <tr>
                                        <th>Sl.No.</th>
                                        <th>image</th>
                                        <th>heading</th>
                                        <th>Action</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @if(!empty($alldata))
                                        <?php $i=0; ?>
                                        @foreach($alldata as $blog)
                                            <?php $i++; ?>
                                            <tr>
                                                <td>{{$i}}</td>
                                                <td>
                                                <img src="{{asset($blog['image'])}}" style="width: 120px;height: 120px;">
                                                </td>

                                                <td>
                                                    {{$blog['heading']}}
                                                </td>

                                               
                                                <td>
                                                    <a href="javascript:void(0);" class="btn btn-warning btn-sm" data-act="ajax-modal" data-title="Edit Services" data-append-id="AjaxModelContent"
                                                       data-action-url="{{route('admin::edit_about',['id'=>$blog['id']])}}">
                                                        <i class="fa fa-edit"></i>
                                                    </a>
                                                    <!-- <a onclick="deleteItem('{{route('admin::delete_home_form_data',$blog['id'])}}')" href="javascript:void(0);" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></a> -->
                                                    <!-- <a  href="" class="btn btn-info btn-sm"><i class="fa fa-comments-o"></i></a> -->
                                                </td>
                                            </tr>
                                        @endforeach
                                    @endif
                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <th>Sl.No.</th>
                                        <th>image</th>
                                        <th>heading</th>
                                        <th>Action</th>
                                    </tr>
                                    </tfoot>
                                </table>
                            </div>
                            <!-- /.card-body -->
                        </div>
                        <!-- /.card -->
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.container-fluid -->
        </section>
        <!-- /.content -->
    </div>
@endsection
@push('scripts')


    
@endpush
