@extends('admin.layouts.app')
@section('content')
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                       
                    </div>
                </div>
            </div><!-- /.container-fluid -->
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <!-- SELECT2 EXAMPLE -->
                <div class="card card-default">
                    <div class="card-header">
                        <h3 class="card-title">Applicant</h3>
                        <a href="{{url('admin/applicants')}}" class="btn btn-green back-button active" role="button" aria-pressed="true">List</a>
                    </div>
                    <div class="card-body">
                        @include('success.success')
                        @include('errors.error')
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="col-md-12">
                                            <label for="service_name" style="font-weight: bold; font-size: 20px; color: #DD6227">Applicant Details</label></br>
                                            <ul class="contact-info">
                                                <li class="d-flex">
                                                    <span>Full Name:</span>
                                                    <span>{{$applicants->name}}</span>
                                                </li>
 
                                                <li class="d-flex">
                                                    <span>Email:</span>
                                                    <span>{{$applicants->email}}</span>
                                                </li>

                                                <li class="d-flex">
                                                    <span>Phone:</span>
                                                    <span>{{$applicants->phone}}</span>
                                                </li>
                                                <li class="d-flex">
                                                    <span>State:</span>
                                                    <span>{{config('custom.states')[$applicants->state]}}</span>
                                                </li>
                                            </ul>
                                        </div>

                                        <div class="col-md-12 mt-4">
                                            <label for="service_name" style="font-weight: bold; font-size: 20px; color: #DD6227">Interested Areas</label></br>
                                            <ul class="contact-info">
                                                <li class="d-flex">
                                                    <span>Sevices:</span>
                                                    <span>
                                                        @foreach($applicants->applicant_service as $service)
                                                            {{App\Models\Service::find($service->service_id)->name}}<br />
                                                        @endforeach
                                                    </span>
                                                </li>
                                                <li class="d-flex">
                                                    <span>Message: </span>
                                                    <span>{{$applicants->message}}</span>
                                                </li>

                                                <li class="d-flex">
                                                    <span>Resume: </span>
                                                    <a target = "_blank" href="{{url($applicants->resume)}}" class="d-flex">
                                                    <!-- <div class="profile-icon mr-2">
                                                        <img src="{{url('admin/images/view-icon.png')}}" alt="">
                                                    </div> -->
                                                    <p>View Resume</p>
                                                </a>
                                                    <!-- <span>{{url($applicants->resume)}}</span> -->
                                                </li>
                                            </ul>
                                        </div>

                                        
                                    </div>
                                </div>
   
            </div>
                </div>
            </div>
        </section>
    </div>
@endsection