@extends('layouts.app')

@section('content')
<div class="container-fluid">
    <div class="row h-100 d-flex align-items-center home-row">
        <div class="col-md-5 home-sec">
            @if (Session::has('error'))
                <div class='alert alert-danger alert-dismissible fade show' role='alert'>
                {{ Session::get('error') }}
                </div>
                @endif
                
                <div class='complete-profile-msg mt-5'>
                <h2>Hello, {{Auth::user()->first_name}} {{Auth::user()->last_name}}</h2>
                <hr>
            
                @if(session('ordercompleted'))
                <strong>{{session('ordercompleted')}} </strong>
                @foreach($order as $orders)    
                <a class='btn btn-primary primary-btn mt-3' target="_blank" href='orderdetail/{{$orders->client_id}}'>View Order</a><br>
                @endforeach
                @elseif(session('orderpending'))
                <div>
                <strong>{{session('orderpending')}}</strong><br>
                <a class='btn btn-warning mt-4 primary-btn' href='{{ route("checkout")}}'>Complete your order Now</a>
                </div>
                @elseif(session('selectpackage'))
                <div>
                <strong>{{session('selectpackage')}}</strong><br>
                <a class='btn btn-primary mt-4 primary-btn' href='{{ route("select-package")}}'>Select Package</a>
                </div>
                @elseif(session('infopending'))
                <div>
                <strong>{{session('infopending')}}</strong><br>
                <a class='btn btn-primary mt-4' href='{{ route("add-business-details")}}'>Add Business Details</a>
                </div>
                @endif
                </div>
        </div>

        <div class='col-md-7'>
            <img class='hom-img' style='width:100%' src='{{url("/3648097.png")}}'>
        </div>
    </div>
</div>
@endsection
