@extends('admin.master')

@section('title')
    Policy Details
@endsection

@section('content')
    <!--begin::Card-->
    <div class="card card-custom gutter-b">
        <div class="card-body">
            <!--begin::Top-->
            <div class="d-flex">

                <!--begin: Info-->
                <div class="flex-grow-1">
                    <!--begin::Title-->
                    <div class="d-flex align-items-center justify-content-between flex-wrap mt-2">
                        <!--begin::User-->
                        <div class="mr-3">
                            <!--begin::Name-->
                            <div class="d-flex align-items-center text-dark font-size-h5 font-weight-bold mr-3">
                                {{ $policy->title }}
                            </div>
                            <!--end::Name-->

                            <!--begin::Contacts-->
                            <div class="d-flex flex-wrap my-2">
                                <!-- In Stock -->
                                <div class="text-success font-weight-bold mr-lg-8 mr-5 mb-lg-0 mb-2">
                                    <span class="svg-icon svg-icon-md svg-icon-success mr-1">
                                        {{ $policy->icon }}
                                    </span>
                                </div>
                            </div>

                            <!--end::Contacts-->
                        </div>
                        <!--begin::User-->

                        <!--begin::Actions-->
                        <div class="my-lg-0 my-1">
                            <a href="{{ route('policies.index') }}" class="btn btn-sm btn-light-info font-weight-bolder text-uppercase mr-2">Back</a>
                            <a href="{{ route('policies.edit', $policy->id) }}" class="btn btn-sm btn-light-success font-weight-bolder text-uppercase">Edit</a>
                        </div>
                        <!--end::Actions-->
                    </div>
                    <!--end::Title-->

                    <!--begin::Content-->
                    <div class="d-flex align-items-center flex-wrap justify-content-between">
                        <!--begin::Description-->
                        <div class="flex-grow-1 font-weight-bold text-dark-50 py-2 py-lg-2 mr-5">
                            {!! $policy->description !!}
                        </div>
                        <!--end::Description-->

                    </div>
                    <!--end::Content-->
                </div>
                <!--end::Info-->
            </div>
            <!--end::Top-->
        </div>
    </div>
    <!--end::Card-->
@endsection
