@extends('admin.layouts.grid') @section('title', $item->name) @section('item_view', true) @section('back', route('admin.items.index')) @section('content')
@include('admin.items.includes.tabs-nav')
@if ($item->hasDiscount())
@php $discount = $item->discount; @endphp
@if ($discount->withExtended()) @endif @if ($discount->withExtended()) @endif
{{ translate('Regular') }}{{ translate('Extended') }}{{ translate('Starting at') }} {{ translate('Ending at') }} {{ translate('Status') }} {{ translate('Action') }}
{{ translate('Discount') }}
{{ $discount->regular_percentage }}%
{{ translate('Purchase Price') }}
{{ getAmount($item->getRegularPrice(), 0) }} {{ getAmount($discount->getRegularPrice(), 0) }}
{{ translate('Discount') }}
{{ $discount->extended_percentage }}%
{{ translate('Purchase Price') }}
{{ getAmount($item->getExtendedPrice(), 0) }} {{ getAmount($discount->getExtendedPrice(), 0) }}
{{ dateFormat($discount->starting_at, 'd M Y') }} {{ dateFormat($discount->ending_at, 'd M Y') }} @if ($discount->isActive())
{{ translate('Active') }}
@else
{{ translate('Inactive') }}
@endif
@csrf @method('DELETE')
@else
@csrf
{{ translate('Regular License discount') }}

{{ translate('The maximum discount percentage is 90%') }}

@include('admin.partials.input-price', [ 'label' => translate('Regular License Price'), 'id' => 'regular-license-price', 'input_class' => 'form-control-md', 'value' => $item->regular_price, 'disabled' => true, ])
%
@include('admin.partials.input-price', [ 'label' => translate('Purchase price'), 'id' => 'regular-license-purchase-price', 'input_class' => 'form-control-md', 'value' => 0, 'disabled' => true, ])
@if ($item->hasExtendedLicense())
{{ translate('Extended License discount (Optional)') }}

{{ translate('The maximum discount percentage is 90%') }}

@include('admin.partials.input-price', [ 'label' => translate('Extended License Price'), 'id' => 'extended-license-price', 'input_class' => 'form-control-md', 'value' => $item->extended_price, 'disabled' => true, ])
%
@include('admin.partials.input-price', [ 'label' => translate('Purchase price'), 'id' => 'extended-license-purchase-price', 'input_class' => 'form-control-md', 'value' => 0, 'disabled' => true, ])
@endif
{{ translate('Discount Period') }}

{{ translate('The starting date cannot be in the past') }}

{{ translate('to') }}
@endif
@if (!$item->hasDiscount()) @push('scripts_libs') @endpush @endif @endsection