@extends('layouts.app') @section('title', '圖像編輯') @push('styles') @endpush @section('content')

圖像編輯

@if ($kind)@endif @if ($all)@endif @if ($isAdmin) {{ $all ? '目前:全部人員的檔案(點此只看我的)' : '查看全部人員的檔案' }} @endif
{{-- 開始:新增空白 / 上傳 --}}
{{-- 新增空白檔的設定(行內面板,不用 modal) --}}
{{-- 檔案清單 --}} @if ($docs->isEmpty())
{{ $search || $kind ? '沒有符合條件的檔案' : '還沒有任何圖檔,從上面新增或上傳一個開始吧' }}
@else
@foreach ($docs as $d)
@if ($d->preview_path || $d->source_type === 'image') @else @endif
{{ $d->title }}
{{ $d->kindLabel() }} @if ($d->width && $d->height){{ $d->width }}×{{ $d->height }}@endif @if ($d->size)· {{ $d->sizeLabel() }}@endif
{{ $d->updated_at?->format('Y-m-d H:i') }} @if ($all && $d->owner) · {{ $d->owner->name }}@endif @if ($d->project) · {{ $d->project->name }}@endif
編輯 @if ($d->source_path) @endif
@csrf
@csrf @method('DELETE')
@endforeach
{{ $docs->links() }}
@endif
@endsection @push('scripts') @endpush