@extends('layouts.app') @section('content')
{{-- HEADER --}} {{-- FORM CARD --}}
Form Edit Laboratorium
{{-- ERROR VALIDASI --}} @if ($errors->any())
Terdapat kesalahan pada input:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- FORM --}}
@csrf @method('PUT')
{{-- NAMA LABORATORIUM --}}
@error('nama_lab')
{{ $message }}
@enderror
{{-- LOKASI --}}
@error('lokasi')
{{ $message }}
@enderror
{{-- KEPALA LABORATORIUM --}}
@error('kepala_lab')
{{ $message }}
@enderror
{{-- DESKRIPSI --}}
@error('deskripsi')
{{ $message }}
@enderror
{{-- FOTO LABORATORIUM --}}
{{-- FOTO LAMA --}} @if($laboratorium->foto)
Foto Saat Ini
{{ $laboratorium->nama_lab }}
@else
Belum ada foto laboratorium.
@endif {{-- UPLOAD FOTO BARU --}}
Pilih foto baru jika ingin mengganti foto lama. Format JPG, JPEG, atau PNG. Maksimal 2 MB.
@error('foto')
{{ $message }}
@enderror
{{-- PREVIEW FOTO BARU --}}
Preview Foto Baru
Preview Foto Baru
{{-- ACTION BUTTON --}}
Batal
{{-- ===================================================== CSS ====================================================== --}} {{-- ===================================================== PREVIEW FOTO BARU ====================================================== --}} @endsection