@extends('layouts.main') @section('title') {{ __('Create Package') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
< {{ __('Back to Packages') }}
@csrf
{{ __('Create Package') }}
@foreach ($languages as $key => $lang)
@if ($lang->id == 1)
{{-- Row 1: IOS Product ID (Name already shown above) --}}
@else
@endif @if ($lang->id == 1) {{-- Row 2: Price and Discount Percentage --}}
{{-- Row 3: Final Price --}}
{{-- Package Duration Type --}}
{{-- Package Type Radio Buttons --}}
{{-- Ad Listing Package Section --}} {{-- Featured Ads Package Section --}} {{-- Key Points --}}
{{-- Image --}}
{{ __('(use 256 x 256 size for better view)') }}
@else {{-- Key Points for other languages --}}
@endif
@endforeach
{{ __('Category Selection') }}
{{-- Global Package Option --}}
{{ __('If checked, this package will be available for all categories.') }}
@foreach ($categories as $category)
@if (!empty($category->subcategories)) @php $currentLang = Session::get('language'); $isRtl = false; if (!empty($currentLang)) { try { $rtlRaw = method_exists($currentLang, 'getRawOriginal') ? $currentLang->getRawOriginal('rtl') : null; if ($rtlRaw !== null) { $isRtl = $rtlRaw == 1 || $rtlRaw === true; } else { $isRtl = $currentLang->rtl == true || $currentLang->rtl === 1; } } catch (\Exception $e) { $isRtl = $currentLang->rtl == true || $currentLang->rtl === 1; } } $arrowIcon = $isRtl ? '' : ''; @endphp {!! $arrowIcon !!} @endif
@endforeach
@endsection @section('js') @endsection