@extends('layouts.app') @section('admin_title', 'Playground Materials') @section('content')
{{-- Hero Header --}}
Student Programming Playground

Playground Study Materials

Upload Google Drive study materials for C, C++, Java, Python, SQL, HTML/CSS/JS, React, and Theory. Students automatically see materials in their respective Playgrounds.

{{-- Upload Form Card --}}

Add New Playground Material (Drive URL Only)

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
@csrf
{{-- Language Filter Tabs + Table --}}
@foreach(['all' => 'All Languages'] + $languages as $k => $lbl) {{ $lbl }} {{ $counts[$k] ?? 0 }} @endforeach
@if($materials->isEmpty())

No playground materials uploaded yet for this filter.

@else
@foreach($materials as $m) @endforeach
Language Title Google Drive Link Actions
{{ $languages[$m->language] ?? strtoupper($m->language) }} {{ $m->title }} Open Drive Link
@csrf @method('DELETE')
@endif
@endsection