@extends('layouts.master') @section('header') @include('layouts.partials.header') @endsection @section('navbar') @include('layouts.partials.nav') @endsection @section('sidebar') @include('layouts.partials.sidebar') @endsection @section('content')

{{__("Product Info")}}

id )}}" class='text-info mx-2' style=''>
@csrf {{ method_field('DELETE') }}

{{$item->title}}

{{$item->description}}

{{$item->weight}}

{{$item->category->name}}

{{$item->orders_count}}

{{$item->orders()->sum('total_cost')}}

{{date("d/m/Y",strtotime($item->created_at))}}

@if(!empty($item->last_order_date)){{date("d/m/Y",strtotime($item->last_order_date))}}@else --- @endif

@foreach($item->countries as $key=>$country)
  • {{__("cities")}}: {{$country->cities_names}}
  • {{__("regions")}}: {{$country->regions_names}}
  • {{__("price")}}: {{$country->price}}
  • {{__("orders count")}}: {{$country->total_order_count}}
  • {{__("orders cost")}}: {{$country->total_order_cost}}
@endforeach
@if($item->status==1){{__("Active")}}@else{{__("Inactive")}}@endif
@endsection @section('footer') @include('layouts.partials.footer') @endsection @section('scripts') @include('layouts.partials.scripts') @endsection