@extends('layouts.admin') @section('title', $service->exists ? 'Edit: '.$service->title : 'New service') @section('actions') ← All services @if ($service->exists)View on site ↗@endif @endsection @php $pkgs = old('packages', $service->exists ? $service->packages->map(fn ($p) => ['id' => $p->id, 'quantity' => $p->quantity, 'price' => $p->price, 'is_popular' => $p->is_popular])->all() : [['quantity' => 100, 'price' => '']]); @endphp @section('content')
@if ($service->exists) @endif @endsection