@extends('admin.ticket.details_layout')

@section('sub_content')
    <div class="attachments-container">
        <div class="attachments-header">
            <p class="attachments-header-title">@lang('All Attachments')</p>
            <div class="attachments-header-action">
                <div class="attachments-header-view">
                    <button class="attachments-header-view-btn list-view" data-key="attachments">
                        @include('admin.partials.svg.list_view')
                    </button>
                    <button class="attachments-header-view-btn grid-view" data-key="attachments">
                        @include('admin.partials.svg.grid_view')
                    </button>
                </div>
            </div>
        </div>

        <div class="attachments-list">
            @forelse ($attachments as $attachment)
                @include('admin.common.attachment_card')
            @empty
                <x-empty-message message="No attachment found" />
            @endforelse
        </div>
    </div>

    <x-confirmation-modal />
@endsection
