@extends('layouts.admin') @section('container')
Categories
@foreach ($categories as $c) @endforeach
{{--
Price Range
--}}
{{-- --}}
@foreach ($products as $p)

{{ $p->name }}

{{-- --}}
@if ($p->price) price_promotion) && $p->price_promotion > 0) style="text-decoration: line-through;" @endif>{{ (int) $p->price }} @if (isset($p->price_promotion) && $p->price_promotion > 0)
{{ $p->price_promotion }} @endif @else Harga tidak ada @endif
@endforeach
{{-- --}} {{ $products->links() }}
@foreach ($products as $p)

{{ $p->name }}

{{--
--}}

{{ $p->description }}

{{--
--}}
@if ($p->price) price_promotion > 0) style="text-decoration: line-through;" @endif>{{ (int) $p->price }} @if ($p->price_promotion > 0)
{{ (int) $p->price_promotion }} @endif @else Harga tidak ada @endif
@if ($p->detail && $p->detail->link_shopee) Link Shopee @endif @if ($p->detail && $p->detail->link_tokopedia) Link Tokopedia @endif @if ($p->detail && $p->detail->link_bukalapak) Link Bukalapak @endif @if ($p->detail && $p->detail->link_lazada) Link Lazada @endif
@endforeach
{{-- --}} {{ $products->links() }}
@endsection @section('scripts') @endsection