@extends('admin.master') @section('title') Photo Albums @endsection @section('content')

Add New Album

@csrf
@error('name') {{ $message }} @enderror
@error('cover_photo') {{ $message }} @enderror

Album List

@forelse ($albums as $item) @empty @endforelse
ID Album Name Cover Photo Total Photos Actions
{{ $loop->iteration }} {{ $item->name }} Album Cover {{ $item->photos->count() }} photos
@csrf @method('DELETE')
No albums found
{{-- edit modal --}} @foreach ($albums as $item) @endforeach @endsection