@extends('layouts.admin') @section('title', __('admin_sales.movement_history')) @push('styles') .summary{display:flex;gap:20px;flex-wrap:wrap}.summary div{padding:14px;border-radius:9px;background:var(--primary-light)}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:12px;border-bottom:1px solid var(--border);text-align:start}.positive{color:#146c35;font-weight:800}.negative{color:#b42318;font-weight:800} @endpush @section('content') @php($name = $product->translation(app()->getLocale())?->name ?? ($product->translation('ar')?->name ?? $product->internal_code))
| {{ __('admin_sales.date') }} | {{ __('admin_sales.movement_type') }} | {{ __('admin_sales.change') }} | {{ __('admin_sales.before') }} | {{ __('admin_sales.after') }} | {{ __('admin_sales.reason') }} | {{ __('admin_sales.actor') }} | {{ __('admin_sales.reference') }} |
|---|---|---|---|---|---|---|---|
| {{ $movement->created_at?->format('Y-m-d H:i') }} | {{ __('admin_sales.' . $movement->movement_type) }} | {{ $movement->quantity_change > 0 ? '+' : '' }}{{ $movement->quantity_change }} | {{ $movement->quantity_before }} | {{ $movement->quantity_after }} | {{ $movement->reason ?? '—' }} | {{ $movement->actor?->full_name ?? '—' }} | @if ($movement->sale) {{ $movement->sale->sale_number }} @else — @endif |
| {{ __('admin_sales.no_movements') }} | |||||||