@php if(!isset($action)) $action = 'create'; //create/update/view @endphp
No | Nama | File | Aksi | @foreach($docs as $idx => $row)
---|---|---|---|
{{$idx+1}} | {{$row->name}} | @if (isset($row->filename) && $row->filename != "") {{-- Download--}} {{-- jika sudah migrasi ke minio--}} Download @endif @if ($action == 'create' ? true : false) @endif @if ($action == 'edit' ? true : false) filename) ? $idx === 0 && $row->filename === "" ? 'required' : '' : ''}} {{$action != 'edit' ? 'disabled' : ''}}> @endif {{-- @component('components.inputfile', ['name' => 'file_'.$idx, "value" => url('tasks/download/'. $row->name), 'label' => 'Upload File', 'disabled' => ($action == 'view'), 'required' => ($row->isrequired === true ? 'required' : '')])@endcomponent--}} | @if(!$row->isrequired) @if ($action == 'create' ? true : false) @endif @if ($action == 'edit' ? true : false) @endif @endif |
No | --}} {{--Nama | --}} {{--Aksi | --}} {{-- --}} {{--
---|
No | --}} {{--Nama | --}} {{--Aksi | --}} {{-- --}} {{--
---|