@extends('layouts/contentLayoutMaster') @section('title', 'Transaction') @section('vendor-style') @endsection @section('page-style') @endsection @section('content')

{{ __('locale.transaction') }}

{{$data['invoice_no']}}

@switch($data['status']) @case(1) {{ __('locale.waiting_for_payment') }} @break @case(2) {{ __('locale.waiting_for_payment') }} @break @case(3) {{ __('locale.waiting_verify_payment') }} @break @case(4) {{ __('locale.waiting_confirmation') }} @break @case(5) {{ __('locale.order_confirmed') }} @break @case(6) {{ __('locale.canceled') }} @break @case(7) {{ __('locale.ongoing') }} @break @case(8) {{ __('locale.done') }} @break @case(9) {{ __('locale.in_complain') }} @break @endswitch

Rp. {{ number_format(($data['total_price'] + $data['payment_code']), 0, ',', '.') }}


{{$data['service_name']}}

{{ \Carbon\Carbon::parse($data->date)->format('d M Y') }}

{{\Carbon\Carbon::createFromFormat('H:i:s', $data['start_time'])->format('H:i')}} - {{\Carbon\Carbon::createFromFormat('H:i:s', $data['end_time'])->format('H:i')}}

{{ $data['participant'] }} {{ __('locale.participant') }}


{{$data['location']}}

@if ($user->id == $data->buddy_id)

{{ __('locale.total_price') }}

( {{$data['duration']}} {{ __('locale.hour') }} x {{$data['participant']}} {{ __('locale.participant') }} )

Rp. {{ number_format(($data['total_price']), 0, ',', '.') }}

Fee ({{$data['fee_percent']}}%)

Rp. {{ number_format(($data['fee_price']), 0, ',', '.') }}

Cashback ({{$data['cashback_percent']}}%)

Rp. {{ number_format(($data['cashback_price']), 0, ',', '.') }}


{{ __('locale.total_payment') }}

Rp. {{ number_format(($data['service_price']), 0, ',', '.') }}

@endif @if ($user->id == $data['user_id'])

{{ __('locale.payment_method') }}

{{$data['payment_name']}}


{{ __('locale.total_price') }}

( {{$data['duration']}} {{ __('locale.hour') }} x {{$data['participant']}} {{ __('locale.participant') }} )

Rp. {{ number_format(($data['total_price']), 0, ',', '.') }}

{{ __('locale.unique_code') }}

{{ number_format(($data['payment_code']), 0, ',', '.') }}


{{ __('locale.total_payment') }}

Rp. {{ number_format(($data['total_price'] + $data['payment_code']), 0, ',', '.') }}

@endif
@if ($data['status'] == 2)
{{ __('locale.pay_before') }} {{ __('locale.pay_before_max') }}
@endif @if ($data['status'] == 4 && Auth::user()->id != $data['user_id'])
{{ __('locale.confirm_before') }} {{ __('locale.confirm_before_max') }}
@endif @if (($data['status'] == 5 && \Carbon\Carbon::now()->gte(\Carbon\Carbon::parse($data->should_finish_at)->subDay())) || ($data['status'] == 7 && \Carbon\Carbon::now()->gte(\Carbon\Carbon::parse($data->should_finish_at)->subDay())) )
{{ __('locale.finish_before') }} {{ __('locale.finish_at') }} {{ __('locale.finish_notice') }}
@endif
    @foreach ($data['logs'] as $key => $item)
  • @if ($key == 0) @else @endif
    {{$item['message']}}
    {{ Carbon\Carbon::parse($item['created_at'])->format('d M Y, H:i') . " WIB"}}
  • @endforeach
@if ($data['has_complained'] == 1)
{{ __('locale.client') }}
{{ number_format($data['complain_to_user'], 0, ',', '.') }}
Buddy
{{ number_format($data['complain_to_buddy'], 0, ',', '.') }}
@endif @if ($data['status'] == 8) @if ($user->id == $data['user_id']) @if ($data['has_review'])

{{$data->review->description}}

@else @endif @endif @else {{-- @if ($user->id == $data['user_id']) @else @endif --}} @endif @if ($user->id == $data['user_id']) @if ($data['status'] == 1)
{{ __('locale.or') }}
@endif @if ($data['status'] == 2)
{{ __('locale.or') }}
@endif @endif @if ($data['status'] == 4) @if ($user->id == $data['buddy_id'])
{{ __('locale.or') }}
@endif @endif @if ($data['status'] == 5) @if ($user->id == $data['user_id'])
{{ __('locale.or') }}
@if (\Carbon\Carbon::now()->gte(\Carbon\Carbon::parse($data->should_finish_at)->subDay())) @else @endif @endif @endif @if ($data['status'] == 7) @if ($user->id == $data['user_id'])
{{ __('locale.or') }}
@endif @endif
@endsection @section('vendor-script') @endsection @section('page-script') {{-- Page js files --}} @endsection