@extends('admin.layouts.master-soyuz') @section('title',__('Block Detail Page Advertising')) @section('body') @component('admin.component.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('List Block Detail Page Ads') }} @endslot @slot('menu1') {{ __('List Block Detail Page Ads') }} @endslot @slot('button')
@can('blockadvertisments.create') {{__("Add New Block Detail Advertise")}}
@endcan
@endslot @endcomponent
{{ __('List Block Detail Page Ads') }}
@foreach($details as $key => $detail) @endforeach
{{ __('ID') }} {{ __('Preview') }} {{ __('Ad Position') }} {{ __('Details') }} {{ __('Status') }} {{ __('Action') }}
{{ $key+1 }} @if($detail->linkby != 'adsense') @else {{__('Google adsense preview not available !')}} @endif @if($detail->position == 'category')

{{ __('On Category Page') }}

@else

{{ __('On Product Detail Page') }}

@endif

{{__('Display On')}}: @php $detailpage = App\Category::where('id',$detail->linked_id)->first(); if(!isset($detailpage)){ $detailpage = App\Product::where('id',$detail->linked_id)->first(); } @endphp @if(isset($detailpage)) @if(isset($detailpage['name'])) {{ $detailpage['name'] ?? '-' }} @else {{ $detailpage['title'] ?? '-' }} @endif @endif

Linked To: @if(isset($detailpage)) @if($detail->linkby == 'detail') {{ $detail->product['name'] ?? '-' }} @elseif($detail->linkby == 'category') {{ $detail->category['title'] ?? '-' }} @elseif($detail->linkby == 'url') {{__("Custom URL")}} @elseif($detail->linkby == 'adsense') {{__("Google Adsense Script")}} @endif

@if($detail->top_heading !='')

{{__("Heading Text")}}: {{ $detail->top_heading }}

@endif @if($detail->btn_text != '')

{{__("Button text")}}: {{ $detail->btn_text }}

@endif @endif
@can('blockadvertisments.edit')
{{csrf_field()}}
@endcan
@can('blockadvertisments.delete') @endcan
@endsection