fix booked
This commit is contained in:
parent
af9a7cd872
commit
c978de849f
|
|
@ -86,7 +86,7 @@ if(!function_exists('zanitlananlar')){
|
|||
return [$item => 'reserved'];
|
||||
});
|
||||
|
||||
$booked = $ticket->booked()->pluck('seat_no')
|
||||
$booked = $ticket->booked->pluck('seat_no')
|
||||
->transform(function ($item,$key){
|
||||
return [$item =>'booked'];
|
||||
});
|
||||
|
|
|
|||
|
|
@ -87,8 +87,8 @@ class Ticket extends MyBaseModel
|
|||
|
||||
public function booked(){
|
||||
return $this->hasMany(Attendee::class)
|
||||
->where('is_cancelled',false)
|
||||
->where('is_refunded',false)
|
||||
->where('is_cancelled',0)
|
||||
->where('is_refunded',0)
|
||||
->orderBy('seat_no','asc');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue