@extends('layouts.app')

@section('content')
@include('admin.adminheader')

<div class='container'>
    <div class="page-title-box">
                <div class="row align-items-center">
                    <div class="col-sm-6">
                        <h4 class="page-title">Business Profile</h4>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-right">
                            <li class="breadcrumb-item"><a href="javascript:void(0);">Admin</a></li>
                            <li class="breadcrumb-item active">Business Profile</li>
                        </ol>
                    </div>
                </div>
                <!-- end row -->
            </div>

            <div class="row mt-5">
                <div class="col-md-12">
                @foreach($business as $info)
                    <div class="row">
                        <div class="col-md-7">
                            <div class="business-info-sec">    
                            <h5>{{$info->bname}}</h5>
                            <hr>
                                <div class='row'>
                                    <div class='col-md-6'>
                                        <p><i class='fas fa-map-marker-alt'></i> {{$info->baddress}}</p>
                                        <p><i class='fas fa-envelope'></i> {{$info->bemail}}</p>
                                        <p><i class='fas fa-phone-square'></i> {{$info->bphone}}</p>
                                        @if($info->description == '')
                                        <p></p>
                                        @else
                                        <p><i class='fas fa-file-alt'></i> {{$info->description}}</p>
                                        @endif
                                    </div>
                                    <div class='col-md-6'>
                                        <p><i class='fab fa-bandcamp'></i> {{$info->category}}</p>
                                        <p><i class='fas fa-clock'></i> {{$info->timezone}}</p>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <div class="radius-detail">
                                <div class='row'>
                                    <div class='col-md-6'>
                                         <h5>{{$info->bradius}} Miles</h5>
                                         <p><i class='fas fa-map-marked-alt'></i> {{$info->radius_address}}</p>
                                         <h5>Assist By</h5>
                                <p><i class='fas fa-user'></i> {{$info->closer_name}}</p>
                                    </div>
                                    <div class='col-md-6'>
                                        <h5>{{$info->productname}}</h5>
                                        <p>${{$info->price}}</p>
                                    </div>
                                </div>
                            </div>
                                                  
                        </div>
                        <div class="col-md-5">
                            <img style='width:100%;border-radius:5px;' src='{{$info->radius_image}}'>
                          </div>
                    </div>
                </div>
                @endforeach
 </div>

@endsection