@extends('back.layouts.layout') @section('title','Edit Photo') @section('content-header') Edit Photo Dashboard Photo Edit Photo @endsection @section('content') @csrf @method('put') Name * @if ($errors->has('name')){{ $errors->first('name') }}@endif Album * Select Album @foreach($albums as $album) id) selected @elseif($album->id == $photo->album_id) selected @endif>{{ $album->name }} @endforeach @if ($errors->has('album_id')){{ ($errors->first('album_id')) ? old('name') : $photo->name }}@endif Image @if($photo->image!="") @endif @if ($errors->has('image')){{ $errors->first('image') }} @endif Status @foreach($statuses as $key=> $status) status) selected @endif>{{ $status }} @endforeach @if ($errors->has('status')){{ $errors->first('status') }} @endif Publish Save Photo List @endsection