@extends('vendors.layout') @section('content')
{{ __('Service Image') }} | {{ __('Service Title') }} | {{ __('Featured Status') }} | @php $currencyText = $currencyInfo->base_currency_text; @endphp {{ __('Price') . ' (' . $currencyText . ')' }} | {{ __('Status') }} | {{ __('Actions') }} | |
---|---|---|---|---|---|---|
|
@if ($service->content->isNotEmpty()) @foreach ($service->content as $content) {{ strlen($content->name) > 50 ? mb_substr($content->name, 0, 50, 'utf-8') . '...' : $content->name }} @endforeach @else {{ '-' }} @endif |
@php
$featuredService = \App\Models\FeaturedService\ServicePromotion::where(
'service_id',
$service->id,
)
->latest()
->first();
@endphp
@if ($featuredService)
@if ($featuredService->order_status == 'pending' || $featuredService->payment_status == 'pending')
{{ __('Pending') }}@elseif( $featuredService->order_status == 'approved' && $featuredService->payment_status == 'completed' && $featuredService->end_date >= \Carbon\Carbon::now()->format('Y-m-d')){{ __('Active') }}@elseif ($featuredService->end_date <= \Carbon\Carbon::now()->format('Y-m-d')) {{ __('Pay to Feature') }} @endif @else {{ __('Pay to Feature') }} @endif |
{{ symbolPrice($service->price) }} | @if ($current_package != '[]') @endif |