@php use GuzzleHttp\Client; use Illuminate\Contracts\Encryption\DecryptException; use Illuminate\Support\Facades\Crypt; $baseurl = 'https://propapi.testing.co.tz'; $sort_no = Config::get('app.sort_no'); $end_no = Config::get('app.end_no'); @endphp @extends('mainlayout') @section('title') MILIKI | My Profile @endsection @section('content')
@if(session('message')) @endif @if(session('message_error')) @endif

My account

{{$profile->first_name}} {{$profile->last_name}}

Edit Profile

Plots Purchased

@forelse($profile->orders as $order) @if(count($order->property)<1) @continue @endif @php $property = $order->property[0]; $plot = $order->plot[0]; $client = new Client(['base_uri' => 'https://propapi.testing.co.tz/api/v1/frontend']); $response = $client->request('POST', 'https://propapi.testing.co.tz/api/v1/frontend', [ 'form_params' => [ 'method'=>'getproperty', 'propertyid'=>$property->id ] ]); $content = json_decode($response->getBody()); $data = $content->data; $propertyy = $data->property[0]; $images = $propertyy->propertyimage; @endphp
@if(count($images)>0) @elseif(count($images)==0) {{$property->name}} Image @endif

{{$property->name}}
Plot No : {{$plot->plotnumber}}, Plot Size : {{$plot->area_size}} sqm

  • Status

    {{$order->percentage_completion}}%

  • Plot No.

    {{$plot->plotnumber}}

  • More Details

    View
@empty

No Orders Created.

@endforelse

Expired Plots

Majumbani
Plot No : 123, Plot Size : 44 sqm, Status: 10%

Favorites

@foreach($profile->likes as $like) @php $client = new Client(['base_uri' => 'https://propapi.testing.co.tz/api/v1/frontend']); $response = $client->request('POST', 'https://propapi.testing.co.tz/api/v1/frontend', [ 'form_params' => [ 'method'=>'getproperty', 'propertyid'=>$like->propertyid ] ]); $content = json_decode($response->getBody()); $data = $content->data; $property = $data->property[0]; $images = $property->propertyimage; @endphp @endforeach

Transaction

@forelse($profile->payments as $payment) @empty

No Transactions Made

@endforelse
Reference Receipt Transaction ID Type Amount Via Date
{{$payment->reference}} {{$payment->receipt}} {{$payment->transactionId}} {{$payment->trans_type}} {{number_format($payment->amount_paid)}} {{$payment->sourceInstitution}} {{$payment->date}}

Settings

Notifications


Language


Save
@endsection