<div class="page-titles mb-4">
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">DW Ads Reporter</a></li>
        <li class="breadcrumb-item active"><a href="javascript:void(0)">{{ $page_title ?? 'Panel' }}</a></li>
    </ol>
    <div class="d-flex flex-wrap align-items-center justify-content-between gap-2">
        <div>
            <h3 class="mb-1">{{ $page_title ?? 'Panel' }}</h3>
            @if(!empty($page_description))
                <p class="mb-0 text-muted">{{ $page_description }}</p>
            @endif
        </div>
        @isset($actions)
            <div>{{ $actions }}</div>
        @endisset
    </div>
</div>

@if(session('success'))
    <div class="alert alert-success alert-dismissible fade show" role="alert">
        {{ session('success') }}
        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
    </div>
@endif

@if($errors->any())
    <div class="alert alert-danger alert-dismissible fade show" role="alert">
        <strong>Kontrol etmemiz gereken alanlar var.</strong>
        <ul class="mb-0 mt-2">
            @foreach($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
    </div>
@endif
