CSV / Excel Viewer

Chọn file CSV hoặc Excel (.xlsx, .xls) để xem nội dung dạng bảng. File Excel có thể xem từng sheet.

@csrf
@if ($errors->any())
{{ $errors->first() }}
@endif @if ($error)
{{ $error }}
@endif @if ($warning)
{{ $warning }}
@endif @if ($fileName)
File: {{ $fileName }} @if (count($sheets) > 1) | Số sheet: {{ count($sheets) }} @endif
@endif
@if (count($sheets))
@if (count($sheets) > 1)
@foreach ($sheets as $sheetName => $sheet) @endforeach
@endif @foreach ($sheets as $sheetName => $sheet) @php $headers = $sheet['headers']; $rows = $sheet['rows']; @endphp
Sheet: {{ $sheetName }} @if (count($headers)) | Cột: {{ count($headers) }} | Dòng dữ liệu: {{ count($rows) }} @if (!empty($sheet['truncated'])) | Đã giới hạn số dòng hiển thị @endif @endif
@if (count($headers))
@foreach ($headers as $header) @endforeach @forelse ($rows as $index => $row) @foreach ($row as $cell) @endforeach @empty @endforelse
#{{ $header }}
{{ $index + 1 }}{{ $cell }}
Sheet không có dòng dữ liệu.
@else
Sheet trống hoặc không có dữ liệu.
@endif
@endforeach
@endif
@if (count($sheets) > 1) @endif