@extends('layouts.admin') @section('title', 'Edit Item') @section('subtitle', 'Modify metadata and settings for this submission') @section('content')
arrow_back Back to Items
@php $primaryBitstream = $item->bitstreams->where('bundle', 'ORIGINAL')->first() ?? $item->bitstreams->first(); @endphp @if($primaryBitstream) download Download PDF / File @endif open_in_new View Public Page
@csrf @method('PUT')

Publication & Placement Settings

Dublin Core Metadata

@foreach($fields as $field) @php $fieldName = 'dc.' . $field->element . ($field->qualifier !== 'none' ? '.' . $field->qualifier : ''); $existingValue = $item->metadata->where('metadata_field_id', $field->id)->first()?->text_value; // Default auto-population for dc.publisher if ($field->element === 'publisher' && empty($existingValue)) { $existingValue = 'Mountain Top University'; } @endphp
@if(in_array($field->element, ['description'])) @elseif($field->element === 'date') @php $dateVal = $existingValue; if (!empty($dateVal) && preg_match('/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/', $dateVal, $m)) { $dateVal = "{$m[3]}-" . str_pad($m[2], 2, '0', STR_PAD_LEFT) . "-" . str_pad($m[1], 2, '0', STR_PAD_LEFT); } @endphp @else element === 'title') maxlength="255" @endif placeholder="{{ $field->scope_note ?: 'Enter ' . $fieldName }}" class="w-full border @error('metadata.'.$field->id) border-red-500 focus:ring-red-500 focus:border-red-500 @else border-slate-200 focus:ring-primary focus:border-primary @enderror rounded-xl px-4 py-3 text-sm"> @endif

{{ $field->scope_note }}

@error('metadata.'.$field->id)

error_outline {{ $message }}

@enderror
@endforeach

Files (Bitstreams)

@if($item->bitstreams->count() > 0)
@foreach($item->bitstreams as $bs)
file_download
{{ $bs->file_name }}
Size: {{ number_format($bs->file_size / 1024, 2) }} KB • MIME: {{ $bs->mime_type }} • file_download {{ number_format($bs->downloads) }} downloads
download View / Download ({{ number_format($bs->downloads) }}) @if(auth()->user()->role === 'admin') @endif
@endforeach
@else

No files currently attached.

@endif

You can select multiple files to upload.

link

Persistent Identifier (UUID)

{{ $item->uuid }}
Cancel
@endsection