@extends('apex-layouts.main') @section('content')

{{$model->title}} ({{$model->id}})

{{$model->type}} | {{$model->status}}

{{-- Against--}} {{-- {{$source->name}}--}} @if(!$model->isPaid) id)}}"--}} data-modal-id="create-transaction-modal-{{$model->id}}" title="Create Transaction"> @endif


@if($model->paidDate) Paid Date{{date("y-m-d",strtotime($model->paidDate))}}
@endif Source{{$model->object}}
Status {{$model->status}}
Type {{$model->type}} @if($model->created_by)
Created by{{$model->createdBy->name}} @endif @if($model->cancel_by)
Cancel by{{$model->cancelBy->name}} @endif
Created {{date("Y-m-d",strtotime($model->created_at))}}
Updated {{date("Y-m-d",strtotime($model->updated_at))}}

Description {{$model->description}}

@if($model->invoiceItems->count())

{{ 'Items' }}

@foreach($model->invoiceItems as $item) @if($item->object == "MEAL_PLANS") objectId)}}" title="{{$item->objectId}}"> {{$item->title}} @else {{$item->title}} @endifRs {{$item->amount}}
@endforeach


@endif @if($model->transactions->count())

{{ 'Payments' }}

#
Created By
Method
Amount
Status
@foreach($model->transactions as $item)
{{$item->createdBy->name}}
{{$item->method}}
Rs {{$item->amount}}
{{$item->status}}

@endforeach
@endif
@endsection @section('scripts') @stop @section('styles') @stop