@include('Admin.Includes.header') @php use Illuminate\Support\Facades\Auth; $logged_in_user = Auth::user(); @endphp

{{ __('Assembly Settings') }}

@if (session('success')) @endif @if ($errors->any()) @endif
Create/Edit Assembly Setting
@csrf
Please enter a category name.
Assembly Settings Table
@forelse($categories as $category) @empty {{-- Don't use colspan when no data - instead use individual cells --}} @endforelse
Name Assemble Price Disassemble Price Both Price Status Sort Order Actions
@if ($category->image) {{ $category->name }} @endif
{{ $category->name }}
@if ($category->description) {{ Str::limit($category->description, 50) }} @endif
${{ number_format($category->assemble_price, 2) }} ${{ number_format($category->disassemble_price, 2) }} ${{ number_format($category->both_price, 2) }} @if ($category->is_active) Active @else Inactive @endif {{ $category->sort_order }}
No data
Name Assemble Price Disassemble Price Both Price Status Sort Order Actions
{{-- Delete Modals for each category --}} @foreach ($categories as $category) @include('Admin.Components.delete-modal', [ 'id' => $category->id, 'name' => $category->name, 'route' => 'admin.assemble-disassemble-categories.destroy', 'routeParam' => $category->id, ]) @endforeach @include('Admin.Includes.footer')