@extends('user.layouts.master') @push('css') @endpush @section('breadcrumb') @include('user.components.breadcrumb',['breadcrumbs' => [ [ 'name' => __("Dashboard"), 'url' => setRoute("user.dashboard"), ] ], 'active' => __(@$page_title)]) @endsection @section('content')

{{ __('Client Offer') }}

@forelse ($get_offers ?? [] as $item) @empty @endforelse
{{ __('Image (User)') }} {{ __('Creator') }} {{ __('TRX ID') }} {{__('Selling Amount')}} {{ __('Offer Amount') }} {{ __('action') }}
product
{{ $item->creator->fullName }} {{ @$item->trades->transaction->trx_id }} {{ get_amount($item->trades->amount, $item->trades->saleCurrency->code,get_wallet_precision($item->trades->saleCurrency->currency) )}} @ {{ get_amount($item->trades->rate, $item->trades->rateCurrency->code,get_wallet_precision($item->trades->rateCurrency->currency)) }} {{ get_amount($item->amount, $item->saleCurrency->code,get_wallet_precision($item->saleCurrency->currency)) }} @ {{ get_amount($item->rate, $item->trades->rateCurrency->code,get_wallet_precision($item->trades->rateCurrency->currency)) }}
@if ($item->trades->status == 1) @if (Auth::user()->id == $item->receiver_id) @if ($item->status == 4) @elseif ($item->status == 1) @if (Auth::user()->id == $item->trade_user_id) @else {{ __('Pay') }} @endif @else @if ($get_offers->where('receiver_id',Auth::user()->id)->first()->id == $item->id) {{ __('Reject') }} @endif @endif @else @if ($item->status == 4) @elseif ($item->status == 1) @if (Auth::user()->id == $item->trade_user_id) @else {{ __('Pay') }} @endif @endif @endif @else @endif
{{ __('No Offer Found') }}
@endsection @push('script') @endpush