@extends('layouts.admin.app', [ 'page' => $menuAdmin['social_and_content']['active'] ?? '', 'sub_page' => $menuAdmin['social_and_content']['route']['reels']['sub_active'] ?? '', ]) @section('title', __('labels.watch_buy_reels')) @section('header_data') @php $page_title = $reel->exists ? __('labels.edit') : __('labels.create'); $page_pretitle = __('labels.watch_buy_reels'); @endphp @endsection @push('styles') @endpush @php $breadcrumbs = [ ['title' => __('labels.home'), 'url' => route('admin.dashboard')], ['title' => __('labels.watch_buy_reels'), 'url' => route('admin.watch-and-buy.reels.index')], ['title' => $reel->exists ? __('labels.edit') : __('labels.create'), 'url' => null], ]; @endphp @section('admin-content')
@csrf

{{ $reel->exists ? __('labels.edit') : __('labels.create') }} {{ __('labels.watch_buy_reels') }}

@php $selectedProfileId = (int) old('profile_id', $reel->profile_id); $selectedProfile = $profiles->firstWhere('id', $selectedProfileId); @endphp
@include('watch_buy._reel_fields') @include('watch_buy._product_picker', [ 'pickerId' => 'admin-reel-products', 'endpoint' => route('admin.watch-and-buy.reels.product-options'), 'required' => true, 'primary' => true, 'selectedOptions' => $selectedOptions ?? [], 'selected' => $selected ?? [], 'maxItems' => $config['maxProductsPerReel'], 'sourceSelector' => '[name="source"]', 'profileSelector' => '[name="profile_id"]', ])
@endsection