Implement Product and ProductCategory Resources: Created new Filament resources for managing products and product categories, including pages for listing, creating, and editing. Added schemas for forms and tables, integrated translation support, and established relationships between products and categories. Enhanced the navigation structure to include product and service links in the frontend menu, improving overall site organization and user experience.
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@extends('layouts.front')
|
||||
|
||||
@section('title', $product->title ?? 'Ürün Detayı')
|
||||
@section('meta_description', Str::limit(strip_tags($product->content), 160))
|
||||
|
||||
@section('content')
|
||||
<section class="wrapper !bg-[#ffffff]">
|
||||
<div class="container py-14 xl:py-16 lg:py-16 md:py-16">
|
||||
<div class="flex flex-wrap mx-[-15px]">
|
||||
<div class="xl:w-10/12 lg:w-10/12 w-full flex-[0_0_auto] px-[15px] max-w-full !mx-auto">
|
||||
<div class="post-header !mb-[.9rem]">
|
||||
<div class="post-category text-line text-[#aab0bc] !mb-3">
|
||||
<span class="hover:!text-[#3f78e0]">{{ $product->type == 'product' ? 'Ürün' : 'Hizmet' }}</span>
|
||||
@if($product->category)
|
||||
/ <span class="hover:!text-[#3f78e0]">{{ $product->category->title }}</span>
|
||||
@endif
|
||||
</div>
|
||||
<!-- /.post-category -->
|
||||
<h1 class="!text-[2.5rem] !leading-[1.2] !mb-4">{{ $product->title }}</h1>
|
||||
</div>
|
||||
<!-- /.post-header -->
|
||||
|
||||
@if($product->hero_image)
|
||||
<figure class="!mb-[2rem] !rounded-[.4rem]">
|
||||
<img class="!rounded-[.4rem] w-full" src="{{ Storage::url($product->hero_image) }}" alt="{{ $product->title }}">
|
||||
</figure>
|
||||
@endif
|
||||
|
||||
<div class="post-content">
|
||||
{!! $product->content !!}
|
||||
</div>
|
||||
<!-- /.post-content -->
|
||||
</div>
|
||||
<!-- /column -->
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
</section>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user