@extends('admin.layouts.master') @section('title') Edit Media @endsection @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif

Edit Media

{{--
--}}

Edit Media

@csrf @method('PUT')
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($media->images && count($media->images) > 0) @foreach ($media->images as $image) {{ $image }}     @endforeach @else -No Image Selected @endif @if (count($errors->get('images.*'))) @php $test = 1; @endphp @foreach ($errors->get('images.*') as $errors) @foreach ($errors as $error) @if ($test == 1) {{ $error }}
@endif @php $test++; @endphp @endforeach @endforeach @endif
{{-- @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif --}}
is_active) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true">
{{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}}

@endsection @section('scripts') @endsection