@extends('layouts/layoutMaster') @section('title', 'Mariachi - Admin') @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/animate-css/animate.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss', ]) @endsection @section('page-style') @vite('resources/assets/vendor/scss/pages/page-user-view.scss') @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js', 'resources/assets/vendor/libs/cleave-zen/cleave-zen.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', ]) @endsection @section('page-script') @vite('resources/assets/js/admin-mariachi-view.js') @endsection @section('content') @php use App\Models\User; use Illuminate\Support\Facades\Route; use Illuminate\Support\Str; $avatarUrl = $profile->logo_path ? asset('storage/'.$profile->logo_path) : asset('marketplace/img/1.webp'); $displayName = $profile->business_name ?: $mariachi->display_name; $statusLabel = $mariachi->status === User::STATUS_ACTIVE ? 'Activo' : 'Inactivo'; $statusClass = $mariachi->status === User::STATUS_ACTIVE ? 'bg-label-success' : 'bg-label-secondary'; $verificationLabel = $profile->verification_status ? Str::headline($profile->verification_status) : 'Pendiente'; $verificationClass = $profile->verification_status === 'verified' ? 'bg-label-success' : 'bg-label-warning'; $plan = $profile->activeSubscription?->plan; $planLabel = $planSummary['name'] ?? ($plan?->name ?: ($profile->subscription_plan_code ? Str::headline($profile->subscription_plan_code) : 'Sin plan')); $planPrice = $plan ? '$'.number_format((int) $plan->price_cop, 0, ',', '.') : null; $planCycle = $plan?->billing_cycle ?: 'mes'; $planEntitlements = $planSummary['entitlements'] ?? []; $profileCompletion = max(0, min(100, (int) $profile->profile_completion)); $publicProfileUrl = \Illuminate\Support\Facades\Route::has('mariachi.provider.public.show') && filled($profile->slug) ? route('mariachi.provider.public.show', ['handle' => $profile->slug]) : null; $viewsTotal = (int) ($profile->stat?->total_views ?? 0); $quotesTotal = (int) ($profile->quote_conversations_count ?? 0); $reviewsTotal = (int) ($profile->reviews_count ?? 0); $activeListings = (int) ($profile->active_listings_count ?? 0); $openDraftLimit = $profile->openDraftLimit(); $publishedLimit = $profile->publishedListingLimit(); $openDraftsCount = $profile->listings()->openDrafts()->count(); $listingUsagePercent = $publishedLimit > 0 ? max(5, min(100, (int) round(($activeListings / $publishedLimit) * 100))) : 0; $publishedLimitLabel = $publishedLimit === 0 ? 'Ilimitados' : $publishedLimit.' en simultaneo'; $openDraftLimitLabel = $openDraftLimit === 0 ? 'Sin tope' : $openDraftLimit.' abiertos'; @endphp @if (session('status'))
Vista administrativa del perfil, desempeno y configuracion actual del mariachi.
{{ $profile->short_description ?: 'Este mariachi aun no ha completado una descripcion corta del proveedor.' }}
| Anuncio | Ciudad | Estado | Progreso | Action | ||
|---|---|---|---|---|---|---|
|
{{ Str::upper(Str::substr($listing->title ?: 'A', 0, 1)) }}
{{ $listing->title ?: 'Anuncio sin titulo' }}
Actualizado {{ optional($listing->updated_at)->diffForHumans() }}
|
{{ $listing->city_name ?: 'Pendiente' }} | {{ $listingStatusLabel }} |
|
|
| # | Status | Total | Issued Date | Action | |
|---|---|---|---|---|---|
| {{ $review->id }} | {{ Str::headline($review->moderation_status ?: 'pending') }} | {{ $review->rating }}/5 | {{ optional($review->created_at)->format('d/m/Y H:i') }} | Moderar |
Activacion de cuenta y verificacion del perfil. Los pagos de anuncios siguen viviendo dentro de cada anuncio.
Todavía no hay pagos registrados para este perfil.
@else| # | Tipo | Plan / detalle | Checkout | Estado | Revision | |
|---|---|---|---|---|---|---|
| #{{ $payment->id }} |
{{ $payment->source_label }}
{{ $payment->operation_label }}
{{ $payment->created_at?->format('d/m/Y H:i') ?: '-' }}
|
{{ $payment->operation_detail }}
{{ $payment->subject_meta }}
${{ number_format((int) $payment->amount_cop, 0, ',', '.') }} COP
@if ($payment->period_label)
{{ $payment->period_label }}
@endif
|
{{ $payment->checkout_reference }}
{{ $payment->provider_transaction_id }}
|
{{ $payment->status_label }}
@if ($payment->provider_transaction_status)
{{ $payment->provider_transaction_status }}
@endif
|
{{ $payment->reviewed_at?->format('d/m/Y H:i') ?: 'Sin revisar' }}
{{ $payment->reviewed_by_name }}
{{ $payment->review_meta }}
@if ($payment->rejection_reason)
{{ $payment->rejection_reason }}
@endif
|
@if ($payment->approve_url && $payment->reject_url)
|
{{ $activity['body'] }}
Todavia no hay eventos relevantes para mostrar en esta ficha.