@extends('admin.layouts.master-soyuz') @section('title',__('Slider |')) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('Sliders') }} @endslot @slot('menu2') {{ __("Sliders") }} @endslot @slot('button')
{{ __('Add Slider') }}
@endslot ​ @endcomponent
@if ($errors->any()) @endif
{{ __('Sliders') }}
@foreach($sliders as $key=> $slider) @endforeach
{{ __('ID') }} {{ __('Slider Content') }} {{ __('Status') }} {{ __('Action') }}
{{ $key + 1 }} @if($image = @file_get_contents(public_path().'/images/slider/'.$slider->image)) @endif

Linked To: @if($slider->link_by =='cat') (Category : {{ $slider->category['title'] ?? 'None' }}) @endif @if($slider->link_by == 'sub') (Subcategory: {{ $slider->subcategory['title'] ?? 'None' }}) @endif @if($slider->link_by == 'child') ( Child Category: {{ $slider->childcategory->title ?? 'None'}}) @endif @if($slider->link_by == 'pro') (Product: {{ $slider->products['name'] ?? 'None' }}) @endif @if($slider->link_by == 'url') (URL: {{ $slider->url }}) @endif @if($slider->link_by == 'None') None @endif

@if(isset($slider->topheading))

Heading Text: {{ $slider->topheading }}

@endif @if(isset($slider->heading))

Subheading Text: {{ $slider->heading }}

@endif @if(isset($slider->buttonname))

{{ __('Button Text:') }} {{ $slider->buttonname }}

@endif
{{csrf_field()}}
​ @endsection