@extends('frontend.layouts.app') @section('title', app_name() . ' | ' . __('navs.general.home')) @section('page-style-files') @endsection @section('content')

Projects :: {{$file->box->project->label}} :: Boxes :: {{$file->box->label}} :: Files :: Edit {{isset($file->label) && $file->label ? $file->label : $file->name}}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach

@endif
{{csrf_field()}}
name}} disabled />
label}} autocomplete="off"/>
visible) && $file->visible ? 'checked' : ''}}/>
@php $files = []; foreach(scandir(base_path() . '/public' . pathinfo($file->path, PATHINFO_DIRNAME) . '/') as $filename){ if ($filename != '.' && $filename != '..'){ if (basename($file->path) != $filename && strpos(pathinfo(basename($filename), PATHINFO_FILENAME), pathinfo(basename($file->path), PATHINFO_FILENAME)) === 0) { $files[] = $filename; } } } @endphp @if(count($files) > 0)

Предыдущие версии

@foreach($files as $filename)
@endforeach
@endif
@endsection @section('page-js-script') @stop