@extends('layouts.master') @section('title', 'Deals | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.deals')) @section('css') @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.deals') }}
{{ __('basic.search filter') }} {{ __('basic.new') }}
@foreach ($stages as $item)
{{ $item->name }}
{{ $item->total_amount }} {{ $currency }}
@if(count($item->deals) > 0) @foreach ($item->deals as $item_deal)
{{ $item_deal->name }}
{{ $item_deal->description}}
{{ $item_deal->client?->full_name }}
{{ date('d M Y', strtotime($item_deal->closing_at)) }}
{{ $item_deal->amount }} {{ $item_deal->currency->code }}
@endforeach @else {{--
the stage is empty
--}} @endif
@endforeach
@endsection @section('js') {{-- sortable --}} @endsection