@extends('admin.layouts.master') @section('title') Add Media @endsection @section('css') @endsection @section('content') @if ($errors->any()) @endif Add Media Home Medias Add Media {{-- --}} Add Media @csrf Name @if ($errors->has('name')) {{ $errors->first('name') }} @endif Description {{ old('description') }} @if ($errors->has('description')) {{ $errors->first('description') }} @endif Image @if ($errors->has('images')) {{ $errors->first('images') }} @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 Category Select Category @foreach ($categories as $category) {{ $category->name }} @endforeach {{-- @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif --}} Status Select Media To Be Active Or Not {{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}} Submit @endsection @section('scripts') @endsection