@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif {{-- Edit Form --}} @if ($formMode)
Edit Graphics Request
{{-- News Title (readonly) --}}
{{-- News Slug (readonly) --}}
{{-- News Author (read-only) --}}
{{-- Created By (read-only) --}}
{{-- Status --}}
@error('edit_status') {{ $message }} @enderror
{{-- Assigned To --}}
{{-- Preview URL --}}
@error('preview_url') {{ $message }} @enderror
{{-- Brief --}}
@error('brief') {{ $message }} @enderror
{{-- News Image --}}
{{-- Old image --}} @if ($existingImage)
@else
No image uploaded yet.
@endif @error('image') {{ $message }} @enderror
Uploading…
{{-- Live preview of newly selected image --}} @if ($image)
@endif
@endif {{-- Filters --}}
Graphics Requests
{{-- Table --}}
@forelse ($graphics as $graphic) {{-- Image --}} {{-- Thumb --}} {{-- Title / Slug --}} {{-- Type --}} {{-- Status --}} {{-- Assigned To — inline, saves on change --}} {{-- Created By --}} {{-- Actions --}} @empty @endforelse
Image Thumb Title / Slug Type Status Assigned To Created By Action
@if (!empty($graphic->cryptoNews?->image)) {{ $graphic->cryptoNews->img_alt_title ?? 'News image' }} @else No image @endif @if (!empty($graphic->cryptoNews?->thumb)) {{ $graphic->cryptoNews->img_alt_title ?? 'News Thumb' }} @else No Thumb @endif @php $baseUrl = rtrim(config('app.web_url') ?: 'http://local.cryptohindinews.com', '/'); $alias = $graphic->cryptoNews->alias ?? null; $url = $alias ? $baseUrl . '/' . ltrim($alias, '/') : null; @endphp @if ($url) Title - {{ $graphic->news_title }}

Slug - {{ $graphic->news_slug }}
@else Title - {{ $graphic->news_title }}

Slug - {{ $graphic->news_slug }} @endif
@switch((int) ($graphic->cryptoNews->is_gabbar ?? 0)) @case(1) News @break @case(2) Press Released @break @case(3) Sponsored @break @case(4) Guest News @break @case(5) Prediction @break @case(6) Blog @break @default Draft @endswitch @switch($graphic->status) @case('pending') Pending @break @case('in_progress') In Progress @break @case('completed') Completed @break @case('cancelled') Cancelled @break @endswitch {{ $graphic->createdByUser->dispaly_name ?? 'Admin' }}
@if (($role_id == 1) || in_array(177, $permissions)) @endif @if (($role_id == 1) || in_array(178, $permissions)) @endif
No records found
{{ $graphics->links() }}