@extends('admin.admin_master')
@section('admin')
<div class="container mt-5">
    <div class="card shadow">
        <div class="card-header bg-primary text-white">
            <h5 class="mb-0">View File: {{ $file->name }}</h5>
        </div>
        <div class="card-body">
            <pre class="bg-light p-3 rounded border overflow-x-auto text-sm" style="white-space: pre-wrap; word-break: break-all; min-height:200px; max-height:60vh;">{{ $content }}</pre>
        </div>
        <div class="card-footer text-end">
            <a href="{{ url()->previous() }}" class="btn btn-secondary">Back</a>
        </div>
    </div>
</div>
@endsection
