@extends('layouts.app') @section('wrapper')
{{ $product->product_name }}

{{ $product->product_name }}

{{ $product->formatted_price }}

@if($product->category) {{ $product->category->name }} @endif @if($product->is_digital) {{__('Digital Product')}} @else {{__('Physical Product')}} @endif {{ $product->stock_status }}
@if(!$product->is_digital)
{{__('Available Stock')}}: {{ $product->stock_quantity }}
@endif @if($product->isAvailable())
@csrf
{{__('Min')}}: {{ $product->min_quantity }}, {{__('Max')}}: {{ $product->is_digital ? $product->max_quantity : min($product->max_quantity, $product->stock_quantity) }}
{{__('Total')}}: {{ $product->formatted_price }}
@auth
{{__('Your Balance')}}: {{ number_format(auth()->user()->balance, 2) }}₺
{{__('After Purchase')}}: {{ number_format(auth()->user()->balance - $product->price * $product->min_quantity, 2) }}₺
@endauth @auth
@else @endauth
@else
{{__('This product is currently not available for purchase.')}}
@endif
{{__('Product Description')}}
{!! nl2br(e($product->description)) !!}
@if($product->is_digital && $product->digital_content)
{{__('What You Will Get')}}
@if($product->auto_delivery)
{{__('This is a digital product with automatic delivery. You will receive your purchase immediately after payment.')}}
@endif
@endif
{{__('Product Details')}}
@if($product->provider)
{{__('Provider')}}: {{ $product->provider }}
@endif @if($product->completing_time)
{{__('Delivery Time')}}: {{ $product->completing_time }}
@endif
{{__('Product Type')}}: {{ $product->is_digital ? __('Digital') : __('Physical') }}
@if($product->is_digital && $product->auto_delivery)
{{__('Delivery')}}: {{__('Automatic')}}
@endif
{{__('Purchase Security')}}
{{__('Secure Payment')}}
{{__('24/7 Support')}}
@if($product->is_digital)
{{__('Instant Delivery')}}
@endif
{{__('Balance Payment')}}
@endsection @section('script') @endsection