@extends('layouts.admin') @section('content')
@include('settings.leftbar')

{{ $title }}

@if (Session::has('message'))

{{ Session::get('message') }}

@endif

@if ($errors->any()) @endif
@csrf @if (isset($banner)) @php $id=$banner->id; @endphp @else @php $id=0; @endphp @endif
@if (old('title')) @php $title=old('title'); @endphp @elseif(isset($banner)) @php $title=$banner->title; @endphp @else @php $title=''; @endphp @endif
@if (old('alias')) @php $alias=old('alias'); @endphp @elseif(isset($banner)) @php $alias=$banner->alias; @endphp @else @php $alias=''; @endphp @endif
@if (old('packageId')) @php $packageId=old('packageId'); @endphp @elseif(isset($banner)) @php $packageId=$banner->packageId; @endphp @else @php $packageId=''; @endphp @endif
@if (old('active')) @php $active=old('active'); @endphp @elseif(isset($banner)) @php $active=($banner->active==1) ? 'checked' : ''; @endphp @else @php $active='checked'; @endphp @endif
@if (old('photo')) @php $photo=old('photo'); @endphp @elseif(isset($banner)) @php $photo=asset(Storage::url($banner->photo)); @endphp @else @php $photo=''; @endphp @endif @if ($photo == null) @else @endif
@push('scripts') @endpush @endsection