@extends('backend.layouts.app')
@section('title', @$data['title'])

@section('content')
    {!! breadcrumb([
        'title' => @$data['title'],
        route('admin.dashboard') => _trans('common.Dashboard'),
        '#' => @$data['title'],
    ]) !!}

    @include('travel::travel-plans.nav', ['plan_id' => $data['travelMeeting']->travel_plan_id, 'is_approved' => true])

    <div class="card ot-card">
        <div class="card-body">
           <div class="d-flex align-items-center justify-content-between mb-3">
                <div>
                    <?php for ($i = 1; $i <= 5; $i++): ?>
                        <i class="las la-star fs-3 <?= $i <= $data['travelMeeting']->rating_of_meeting_experience ? 'text-warning' : '' ?>"></i>
                    <?php endfor; ?>
                </div>
                @if ($data['travelMeeting']->file_id)
                    <a href="{{ uploaded_asset($data['travelMeeting']->file_id) }}" download class="btn btn-primary btn-sm">
                        <i class="fas fa-download"></i>
                    </a>
                @else
                    {{ _trans('common.No File') }}
                @endif
           </div>

            <div class="row">
                <div class="col-lg-6">
                    <table class="table table-striped table-borderless w-100">
                        <tr>
                            <th>{{ _trans('common.Company Name') }}</th>
                            <td>: {{ $data['travelMeeting']->customer_company_name }}</td>
                        </tr>
                        <tr>
                            <th>{{ _trans('common.Customer Name') }}</th>
                            <td>: {{ @$data['travelMeeting']->customer_name }}</td>
                        </tr>
                        <tr>
                            <th>{{ _trans('common.Customer Email') }}</th>
                            <td>: <a href="mailto:{{ $data['travelMeeting']->customer_email }}">{{ $data['travelMeeting']->customer_email }}</a></td>
                        </tr>
                        <tr>
                            <th>{{ _trans('common.Customer Phone') }}</th>
                            <td>: <a href="tel:{{ $data['travelMeeting']->customer_phone }}">{{ $data['travelMeeting']->customer_phone }}</a></td>
                        </tr>
                    </table>
                </div>
                <div class="col-lg-6">
                    <table class="table table-striped table-borderless w-100">
                        <tr>
                            <th>{{ _trans('common.Date') }}</th>
                            <td>: {{ $data['travelMeeting']->date }}</td>
                        </tr>
                        <tr>
                            <th>{{ _trans('common.Schedule Time') }}</th>
                            <td>: {{ date('h:i A', strtotime($data['travelMeeting']->meeting_schedule_time)) }}</td>
                        </tr>
                        <tr>
                            <th>{{ _trans('common.Start Time') }}</th>
                            <td>: {{ date('h:i A', strtotime($data['travelMeeting']->meeting_start_time)) }}</td>
                        </tr>
                        <tr>
                            <th>{{ _trans('common.End Time') }}</th>
                            <td>: {{ date('h:i A', strtotime($data['travelMeeting']->meeting_end_time)) }}</td>
                        </tr>
                    </table>
                </div>
            </div>

            <small class="text-muted mb-3">{{ _trans('common.Purpose') }}: </small>
            <p class="mb-5">{!! nl2br($data['travelMeeting']->purpose) !!}</p>
            
            <div class="mt-5 bg-light px-3 py-2">
                @if ($data['travelMeeting']->remark)
                    <small class="text-muted">{{ _trans('common.Remark') }}: </small>
                    <p>{!! nl2br($data['travelMeeting']->remark) !!}</p>
                @endif
            </div>
        </div>
    </div>
@endsection
