@extends('layouts.admin')
@section('content')
    <style>
        .table tbody tr:last-child td,
        .table tbody tr:last-child th{
            border-bottom: none;
        }
        .card-body .table{
            margin-bottom: 0;
        }
        .long-description {
            max-width: 600px;  /* Limit width */
            max-height: 150px; /* Limit height */
            overflow: auto;    /* Enable scrolling for overflow */
            word-wrap: break-word; /* Ensure long words break properly */
            white-space: pre-line; /* Preserve line breaks */
            padding: 5px;
            border: 1px solid #ddd; /* Optional: add a border */
            background-color: #f8f9fa; /* Light background for readability */
            border-radius: 5px;
        }

        #statusDropdown {
            height: 25px;
            padding: 0 0px 0px 8px;
        }

        #map {
            height: 500px;
            width: 100%;
        }

    </style>

   <!-- start page title -->
   <div class="row">
    <div class="col-12">
        <div class="page-title-box d-sm-flex align-items-center justify-content-between bg-galaxy-transparent">
            <h4 class="mb-sm-0">Ad Report</h4>

            <div class="page-title-right">
                <ol class="breadcrumb m-0">
                    <li class="breadcrumb-item"><a href="javascript: void(0);">Home</a></li>
                    <li class="breadcrumb-item"><a href="javascript: void(0);">Ad Report</a></li>
                    <li class="breadcrumb-item active">Report Details</li>
                </ol>
            </div>
        </div>
    </div>
</div>
<!-- end page title -->

<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-header border-0">
                <div class="row align-items-center gy-3">
                    <div class="col-sm">
                        <h5 class="card-title mb-0">Report Details: <strong>{{ $report->ad->title }}</strong></h5>
                    </div>
                </div>
            </div>
            <div class="card-body">
                <div class="row">
                    <!-- Left Column: Contact Information, Documents, Additional Information, Options -->
                    <div class="col-lg-12">
                        <div class="card mb-3">
                            <div class="card-header py-2" style="background-color: var(--vz-primary);">
                                <h4 class="mb-0 text-white">Report Information</h4>
                            </div>
                            <div class="card-body">
                                <table class="table table-sm">
                                    <tr>
                                        <th>User Name</th>
                                        <td>{{ $report->user->name??'N/A' }}</td>
                                    </tr>
                                    <tr>
                                        <th>Type</th>
                                        <td>{{ $report->type->name }}</td>
                                    </tr>
                                    <tr>
                                        <th>Description</th>
                                        <td>{{ $report->description }}</td>
                                    </tr>
                                    
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



@endsection
@section('script')
@endsection

