@extends('layouts.master') @section('title', 'Souvenir Logs') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header') @include('layouts.title')

ประวัติการเพิ่ม–ลบของที่ระลึก

@forelse($logs as $index => $log) {{-- วันที่เพิ่ม / จำนวนที่เพิ่ม --}} {{-- วันที่ลบ / จำนวนที่ลบ --}} @empty @endforelse
No. รูปภาพ ชื่อของที่ระลึก วันที่เพิ่ม จำนวนที่เพิ่ม วันที่ลบ จำนวนที่ลบ
{{ $index + 1 }} @if (!empty($log->product_image)) รูปภาพ @else - @endif {{ $log->product_name }} @if ($log->action_type == 'add') {{ \Carbon\Carbon::parse($log->created_at)->format('d/m/Y H:i') }} @elseif($log->action_type == 'delete') {{ \Carbon\Carbon::parse($log->created_at)->format('d/m/Y H:i') }} @else - @endif @if ($log->action_type == 'add') {{ $log->quantity }} @elseif($log->action_type == 'delete') {{ $log->quantity }} @else - @endif @if ($log->action_type == 'remove' || $log->action_type == 'delete') {{ \Carbon\Carbon::parse($log->created_at)->format('d/m/Y H:i') }} @else - @endif @if ($log->action_type == 'remove' || $log->action_type == 'delete') {{ $log->quantity }} @else - @endif
ไม่พบข้อมูล
{{ $logs->appends(request()->query())->links() }}
@include('layouts.footer') @endsection