@extends('layouts.admin') @section('content')
@include('settings.left-bar')
@include('include.errors') @isset($instruction)
@else @endisset @csrf
@if(isset($instruction->title)) @php $title=$instruction->title @endphp @elseif(old('title')) @php $title=old('title') @endphp @else @php $title='' @endphp @endif
@if(isset($instruction->rank)) @php $rank=$instruction->rank @endphp @elseif(old('rank')) @php $rank=old('rank') @endphp @else @php $rank=0 @endphp @endif
@if(isset($instruction->image)) @php $image=asset(Storage::url('uploads/delivery_instructions/'.$instruction->image)) @endphp @else @php $image='' @endphp @endif
@if($image != "") @if (Storage::exists($image)) photo @else @endif @else @endif
@if(isset($instruction->active)) @php $active=$instruction->active @endphp @elseif(old('active')) @php $active=old('active') @endphp @else @php $active=1 @endphp @endif
@endsection