@extends('layouts.admin.layout') @section('title') {{ $website_lang->where('lang_key','order')->first()->custom_lang }} @endsection @section('admin-content')
{{ $website_lang->where('lang_key','order_table')->first()->custom_lang }}
@foreach ($orders as $index => $item) @endforeach
{{ $website_lang->where('lang_key','serial')->first()->custom_lang }} {{ $website_lang->where('lang_key','name')->first()->custom_lang }} {{ $website_lang->where('lang_key','email')->first()->custom_lang }} {{ $website_lang->where('lang_key','phone')->first()->custom_lang }} {{ $website_lang->where('lang_key','order_id')->first()->custom_lang }} {{ $website_lang->where('lang_key','date')->first()->custom_lang }} {{ $website_lang->where('lang_key','payment')->first()->custom_lang }} {{ $website_lang->where('lang_key','action')->first()->custom_lang }}
{{ ++$index }} {{ ucfirst($item->user->name) }} {{ $item->user->email }} {{ $item->user->phone }} {{ $item->order_id }} {{ $item->created_at->format('m-d-Y') }} @if ($item->payment_status==0) {{ $website_lang->where('lang_key','pending')->first()->custom_lang }} @else {{ $website_lang->where('lang_key','success')->first()->custom_lang }} @endif
@endsection