@extends('layouts.app') @section('content')
@if($brandData->image_url) {{ $brandData->brand }} @else
@endif

{{ $brandData->brand }}

@if($brandData->developer)

{{ $brandData->developer }}

@endif

{{ $products->count() }} produk tersedia

@foreach($products as $product)

{{ $product->name }}

@if($product->description)

{{ $product->description }}

@endif
@if($product->discount_price && $product->discount_price < $product->price)
Rp {{ number_format($product->price, 0, ',', '.') }} {{ round((($product->price - $product->discount_price) / $product->price) * 100) }}%

Rp {{ number_format($product->discount_price, 0, ',', '.') }}

@else

Rp {{ number_format($product->price, 0, ',', '.') }}

@endif
@csrf
@endforeach
@if($products->isEmpty())

Belum ada produk

Produk untuk brand ini sedang dalam proses

@endif @endsection