@extends('back.layouts.layout') @section('title','Edit Content') @section('content-header') Edit Content Dashboard Content Edit Content @endsection @section('content') @csrf @method('put') Name * @if ($errors->has('name')){{ $errors->first('name') }}@endif @if($content->text!="") Text {{ (!empty(old('text'))) ? old('text') : $content->text }} @if ($errors->has('text')){{ $errors->first('text') }}@endif @endif @if($content->link!="") Link @if ($errors->has('link')){{ $errors->first('link') }}@endif @endif @if($content->btn_text!="") Btn Text @if ($errors->has('btn_text')){{ $errors->first('btn_text') }}@endif @endif @if($content->image!="") Image @if($content->image!="") @endif @if ($errors->has('image')){{ $errors->first('image') }} @endif @endif Status @foreach($statuses as $key=> $status) status) selected @endif>{{ $status }} @endforeach @if ($errors->has('status')){{ $errors->first('status') }} @endif Publish Save Content List @endsection