@extends('layouts/contentLayoutMaster') @section('title', 'Templates') @section('main-page', 'Templates') @section('sub-page', 'Add New Template') @section('main-page-url', route("product-templates.index")) @section('sub-page-url', route("product-templates.create")) @section('vendor-style') @endsection @php $category = \App\Models\Category::find(request('category_id')); $HasMockupCategory = \App\Models\Category::find(request('category_id')); @endphp @section('content')
@csrf
{{-- @if(request()->query('q') == 'without')--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- Pick a color or type hex (e.g.--}} {{-- #FFAA00).--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- Drop image or click--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- @endif--}}

Template Details
@foreach(config("app.locales") as $locale)
@endforeach
@foreach(\App\Models\Type::all(['id','value']) as $type)
@endforeach
@if(request()->query('q') == 'without')
Drop front image here or click
Allowed formats: PNG, JPG, JPEG, WEBP. Maximum file size: 30 MB. Minimum dimensions: 1000 × 1000 px.
Drop back image here or click
Allowed formats: PNG, JPG, JPEG, WEBP. Maximum file size: 30 MB. Minimum dimensions: 1000 × 1000 px.
Drop general image here or click
Allowed formats: PNG, JPG, JPEG, WEBP. Maximum file size: 30 MB. Minimum dimensions: 1000 × 1000 px.
@endif @if(($HasMockupCategory && !$HasMockupCategory->has_mockup) || !$HasMockupCategory)
Drop image here or click to upload
Upload an image with an 8:9 aspect ratio (for example, 618 × 700 px).
@endif

Products & Categories
Mockups
Select a mockup to show this template on it.
Optional

Industry
@can("tags_create") @endcan
@if(request()->query('q') == 'with')

Design Specifications

Guides Settings
{{-- Persisted resources (used on submit) --}}
{{-- Shape (col-6) --}}
{{-- Safety Area (col-6) --}}
{{-- send 0 when unchecked --}}
Padding inside the design area.
{{-- Cut Margin (col-6) --}}
{{-- send 0 when unchecked --}}
{{-- Padding inside the design--}} {{-- area.--}}
If no size is selected, the default 650×650 will be applied.
@endif
@if(request()->query('q') == 'without') @endif @if(request()->query('q') == 'with') @endif
@include('modals.tags.add-tag') @php // لو route محتاج parameter اسمه mockup $mockupUpdateUrlTemplate = route('mockups.edit', ['mockup' => '__ID__']); @endphp @endsection @section('vendor-script') {{-- Replace the entire mockup JS block in your blade file with this --}} @endsection @section('page-script') @endsection