Materials - {{ $material->title }}
{{--CONTENT--}}
{{--ALERTS--}} @include('components.alerts') {{--TAB CONTROLS--}}
{{--CONTENT--}}
{{--IMAGE--}}

{{ __('Add new image') }}

{{ __("Choose an image from your computer and add it.") }}

@csrf @method('post')
{{ __('Upload image') }} @if (session('status') === 'profile-updated')

{{ __('Uploaded.') }}

@endif
{{--GALLERY--}} @if ($images->count() > 0)
@if($material->image != '')

Main image

@endif

{{ __('All uploaded images') }}

@foreach($images as $image)
@if($material->image == $image->id) @else {{--MAKE MAIN BUTTON--}}

Make main image

{{--DESTROY BUTTON--}} @endif
@endforeach
@endif

{{ $material->title }} material types

{{--TYPES--}}
{{ __('+ Add new types') }}
@include('layouts._partials._alerts') {{--LIST--}}
    @forelse($types as $item)
  • {{-- --}}

    {{ $item->title }}

    {{ $item->content }}

    @if( $item->sorting > 1) Up @endif @if( $item->sorting < count($types)) Down @endif

    #{{ $item->sorting }}

  • @empty

    No content

    Get started by creating a new.

    @endforelse
@section('js') @endsection