@extends('back.master') @section('title', __('Products')) @section('additional_head_tags') @endsection @section('content')
@{{ peaksGenerated }}
@foreach($products as $product) @endforeach
{{ __('Name') }} {{ __('Price') }} {{ __('Sales') }} {{ __('Category') }} {{ __('Active') }} {{ __('Trending') }} {{ __('Featured') }} {{ __('Newest') }} {{ __('Files') }} {{ __('Updated at') }} {{ __('Actions') }}
{{ $product->id.' - '.ucfirst($product->name) }} {{ currency().' '.format_amount($product->price) }} {{ $product->sales }} {{ $product->category }} {{ __(ucfirst($product->type ?? '-')) }}
active) checked @endif data-id="{{ $product->id }}" data-status="active" @change="updateStatus($event)">
trending) checked @endif data-id="{{ $product->id }}" data-status="trending" @change="updateStatus($event)">
featured) checked @endif data-id="{{ $product->id }}" data-status="featured" @change="updateStatus($event)">
newest) checked @endif data-id="{{ $product->id }}" data-status="newest" @change="updateStatus($event)">
@if($product->file_name) @if($product->is_dir) @else @endif @else - @endif {{ $product->updated_at }}
@if($products->hasPages())
{{ $products->appends($base_uri)->onEachSide(1)->links() }} {{ $products->appends($base_uri)->links('vendor.pagination.simple-semantic-ui') }} @endif
@csrf
@endsection